Which method can be used to create an input object for file temp.txt?

a. new Scanner("temp.txt")
b. new Scanner(temp.txt)
c. new Scanner(new File("temp.txt"))
d. new Scanner(File("temp.txt"))

c. new Scanner(new File("temp.txt"))

Computer Science & Information Technology

You might also like to view...

List the different types of computers and describe what each is best used for

What will be an ideal response?

Computer Science & Information Technology

Which of the following is a protocol prefix?

A) org B) http C) url D) ca

Computer Science & Information Technology