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
10. Which of these is not an HTTP verb? PUT AJAX GET DELETE
Korolek [52]

Answer:

Brainliest!

Explanation:

The primary or most-commonly-used HTTP verbs (or methods, as they are properly called) are POST, GET, PUT, PATCH, and DELETE. These correspond to create, read, update, and delete (or CRUD) operations, respectively. There are a number of other verbs, too, but are utilized less frequently.

-

restapitutorial

.

com

3 0
3 years ago
What computer has best software
Kruka [31]
Dell computers have pretty good software.
4 0
3 years ago
A peripheral can be used to tell a computer to complete a specific task. True False
never [62]
I looked up the answer; I believe the answer is true.
7 0
3 years ago
The monkey-and-bananas problem is faced by a monkey in a laboratory with some bananas hanging out of reach from the ceiling. A b
elixir [45]

Answer:

a) <u>initial state description</u>

<em>At(Monkey, A) ∧ At(Bananas, B) ∧ At(Box, C) ∧</em>

<em>Height(Monkey, Low) ∧ Height (Box, Low) ∧</em>

<em>Height (Bananas, High) ∧ Push(Box) ∧ ClimbUp(Box)</em>

b)  <u>the six action schemas.</u>

1 - Go from one place to another

<em>Action (Go(x, y),</em>

<em>PRECONDITION: At (Monkey, x)</em>

<em>EFFECT: At (Monkey, y) ∧¬At(Monkey, x))</em>

2 - Push an object from one place to another

<em>Action (Push(b, x, y),</em>

<em>PRECONDITION: At (Monkey, x) ∧ Can Push(b)</em>

<em>EFFECT: At(b, y) ∧ At (Monkey, y) ∧¬At(b, x) ∧¬At(Monkey, x))</em>

3 - Climb up unto an object

<em>Action (ClimbUp(b),</em>

<em>PRECONDITION: At(b, x) ∧ At(Monkey, x) ∧ ClimbUp(b)</em>

<em>EFFECT: On (Monkey, b) ∧¬Height (Monkey, High))</em>

4 - ClimbDown from an object

<em>Action (ClimbDown (b),</em>

<em>PRECONDITION: On (Monkey, b) ∧ Height (Monkey, High)</em>

<em>EFFECT: ¬On (Monkey, b) ∧¬Height (Monkey, High) ∧ Height(Monkey, Low))</em>

5 - Grasp an object

<em>Action (Grasp (object, position, height),</em>

<em>PRECONDITION: Height(Monkey, h) ∧ Height(b, h) ∧ At(Monkey, x) ∧ At(b, x)</em>

<em>EFFECT: Has(Monkey, b))</em>

6 - Ungrasp an object

<em>Action (Ungrasp(b),</em>

<em>PRECONDITION: Have(Monkey, b)</em>

<em>EFFECT: Has(Monkey, object))</em>

<em />

c) <u>general goal state.</u>

<em>Has(Monkey, Bananas, s) ∧ (ЗхAt(Box, x, s₁) ∧ At(Box, x, s))</em>

STRIPS only consider about goal state, there is no relation between two states within the plan, so there is no way to represent this goal.

6 0
3 years ago
In Microsoft Windows, which of the following typically happens by default when a file is "double-clicked"
Elenna [48]
Depending on the type of file, it normally runs or opens.
4 0
3 years ago
Read 2 more answers
Other questions:
  • As you're helping a user configure her e-mail over the phone, she remarks that the IP address is different than it was when she
    6·1 answer
  • Nadia would like to find text in her current document that differentiates CompanyABC from companyabc. Which option should she us
    8·2 answers
  • Which is a benefit of peer-to-peer networking?
    10·1 answer
  • Would these statements cause an error? Why or why not? int year = 2019; int yearNext = 2020; int &amp; ref = year; &amp; ref = y
    7·1 answer
  • ____ includes any attempt to intentionally conduct dishonest activities online.
    5·1 answer
  • What is the name of the advanced warrior race of robots in Doctor Who?
    10·2 answers
  • You are a Data Scientist at Anthem Blue Cross Blue Shield. You want to check if a patient will develop diabetes. Please write th
    5·1 answer
  • Hi everyone,
    6·1 answer
  • Pls help me!!!!!!!!!!!!!!!!!!!
    11·2 answers
  • Defination of formula work sheet​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!