1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
harina [27]
3 years ago
10

Declare a Scanner reference variable fileInput, and assign it a newly created Scanner object that is associated with a file name

d "data1". (Do not concern yourself with any possible exceptions here-- assume they are handled elsewhere.)
Computers and Technology
1 answer:
Naily [24]3 years ago
4 0

Answer:

Scanner fileInput = new Scanner(new File("data1"));

Explanation:

In JAVA Scanner class is used to get input from the user.

In order to use this class an instance of this class is created also called an object.

Here the fileInput is a reference variable which is also called instance variable used to access a Scanner object.

new keyword is used here to create an instance or object of Scanner class.

File is a class which works with files and directories. So new File("data1") is used to create an object of File and data1 is passed to it because in order to create an instance of the class, a string, which can be a name of file or an object is passed.

You might be interested in
The helping professions all involve_____.
NARA [144]

Answer:

look that up on gogle

filler filler filler filler filler

7 0
3 years ago
True or False: A private access modifier is normally used with methods
Veseljchak [2.6K]
I’m pretty sure it’s true! Brainliest if correct
4 0
3 years ago
Read 2 more answers
Why is a non-trivial or predictable classification system preferred in systematics?
spayn [35]
A non-trivial or predictable classification system is preferred in systematics for the reason that, it is <span> repeatable, objective, testable and </span>predictable. Predictable in a way that you <span>get more out of it than what you put in it. Hope this answers your question.</span>
4 0
3 years ago
Is www part of every url address?
melisa1 [442]
The correct answer is that WWW. is universal, meaning that any and all url addresses start and have www.

My reasoning is that if you were to look up, lets say google, do :

www.(google).com ( remove parentheses )

then

google.com 

You come up with the same results THUS YOUR CORRECT ANSWER IS YES! ALL URL ADDRESS HAVE AND CONTAIN WWW.!!!

5 0
4 years ago
Attribute variables have the same meaning as participants variables. is this true or false?​
zysi [14]

Answer:

true

Explanation:

because I said so dude

5 0
3 years ago
Other questions:
  • Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the g
    12·2 answers
  • Assume the existence of a Building class with a constructor that accepts two parameters:_________ a reference to an Address obje
    5·1 answer
  • You want to discard your old computer but want to securely erase the data from your hard drive, what can Use to do this?
    5·1 answer
  • Which of these has the LEAST impact on causing the phenomenon known as acid raid?
    8·2 answers
  • What does it mean to catch an exception?
    8·1 answer
  • What is the name of the top-level parentless folder in a digital file system?
    8·1 answer
  • Usually, in organizations, the policy and mechanism are established by the:
    14·2 answers
  • what should the timing of transition slides be per minute? maintain the flow of the presentation to ______ slides per minute.
    9·1 answer
  • New friends??? if you want to be my new friend go follow my gram
    7·2 answers
  • What is a common misconception about Agile and DevOps?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!