Suppose we wanted to process a text file called "input.txt" using the Scanner object. Which of the following lines of code correctly creates the necessary Scanner object?

a)```
Scanner inputFile = new Scanner("input.txt");
```
b)```
Scanner inputFile = new Scanner(new InputFile("input.txt");
```
c)```
Scanner inputFile = new Scanner(new File(input.txt);
```
d)```
Scanner inputFile = new Scanner(new InputFile(input.txt);
```
e)```
Scanner inputFile = new Scanner(new File("input.txt");
```


c)```
Scanner inputFile = new Scanner(new File(input.txt);
```

Computer Science & Information Technology

You might also like to view...

The following code selects all the records from the ________ that do not have ________.

``` query = "SELECT * FROM AuctionItems " _ & "WHERE Ends = #" & Date() - 1 & "# " _ & "AND CurrentBidder IS NOT NULL " _ & "ORDER BY Display" ``` (a) current day, more than one bid. (b) past week, a null CurrentBidder field. (c) previous day, a null CurrentBidder field (d) previous day, one bid.

Computer Science & Information Technology

A portable gas engine generator is the best solution for a company that wants a permanently installed generator

Indicate whether the statement is true or false

Computer Science & Information Technology

The Neon Glow artistic filter adds a glowing effect to selected objects.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Given the following master file containing employee names (key field) and hourly rates and given the following transaction file, what is the value of Tom’s hourly rate in the updated master file?

Master File Transaction File John 20.00 Add Jim 11.00 Mary 10.00 Delete John Sue 6.00 Add Nancy 15.00 Tom 8.00 Delete Tom Vince 13.00 Add Tom 13.00 Change Vince 14.00 a) 8 b) 13 c) 14 d) 21

Computer Science & Information Technology