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
Tasya [4]
3 years ago
13

Insert the missing code in the following code fragment. This fragment is intended to read an input file named dataIn.txt and wri

te to an output file named dataOut.txt.
public static void main (String[] args) throws FileNotFoundException
{
String inputFileName = "dataIn.txt";
String outputFileName = "dataOut.txt";
File inputFile = new File(inputFileName);
Scanner in = ________;
...
}
Computers and Technology
1 answer:
olasank [31]3 years ago
6 0

Answer:

new Scanner(inputFile)

Explanation:

In Java when inputting a file using Scanner class. A Scanner breaks the input into tokens with the help of delimiting patterns, by default which matches the whitespaces and then the tokens that are received may be converted into values of different types by suing different next methods.

You might be interested in
Write any two rule of function​
Morgarella [4.7K]

Answer:

Begin to write the function rule by placing b on one side of an equal sign. Step 2 Look at the first row of the table. Think about how the input value and the output value are related. There are two ways to get an output value of 1 when the input value is 2.

Explanation:

Plz Mark me as brainliest

3 0
3 years ago
Imagine that a you and a friend are exercising together at a gym. Your friend suddenly trips and falls, and it is clear that he
ladessa [460]

Answer:

The sprain happened when the friend fell and the ligaments (in the ankle)  stretched, twisted or possibly tore. Sprain is manifested by pain, swelling, bruising and inability to move.

Explanation:

Here the appropriate steps to stabilize the injury:

1.       Call for help.

2.       Rest the injured area to avoid further damage.

3.       Put ice ( for 15 to 20 minutes) to help limit the swelling.

4.       Apply compression bandage to prevent more swelling.

5.       Elevate the injured ankle above the heart to limit swelling.

Hope this helps UvU

4 0
3 years ago
Two VALS segments stand apart. One segment represents the group with the highest resources and innovation and the other segment
irina1246 [14]

Answer:

Innovators and Survivors

Explanation:

The innovators are always interested in new information, are open to new ideas and trying out new things, future oriented and excellent problem solving skills. They represent the group with the highest resources according to the VALS segments.

Survivors are the group with the lowest resources. They are risk adverse, and exhibit low motivation towards new ideas or experiences.

3 0
4 years ago
What is computer software<br>​
podryga [215]

Answer:

Computer software, or simply software, is a collection of data or computer instructions that tell the computer how to work. This is in contrast to physical hardware, from which the system is built and actually performs the work.

7 0
3 years ago
From topic 6 (IT Infrastructures and Emerging Technologies) read the Interactive Session: Management “Organizations” (Chapter 5,
11111nata11111 [884]

Answer:

please ask one by one sorry

5 0
3 years ago
Other questions:
  • What is the difference between HTML and CSS? * 1. CSS is a markup language unlike HTML 2. HTML is a backend technology and CSS i
    7·1 answer
  • Which camera does Angelina use?
    12·1 answer
  • Many say that computers are changing learning as radically as did printing in its age. how are computer technologies changing le
    7·1 answer
  • In order to detect repeated lines anywhere in the input, myuniq must keep track of all of the lines it has seen as it moves thro
    9·1 answer
  • My phone takes forever to load the ads, does anyone else have this problem? Is there a way to fix it? I’ve tried getting another
    12·2 answers
  • Explain what the problems with the implementation of the function are, and show a way to fix them.// return true if two C string
    7·1 answer
  • Which of the following statements is TRUE of a peer-to-peer network?
    10·1 answer
  • In how many ways can a list of students names from your class be organized?​
    14·1 answer
  • Una laptop agarra mas internet que una computadora de escritorio?
    11·1 answer
  • Which unit of binary storage has a size that is processor dependent?.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!