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
Makovka662 [10]
4 years ago
5

Write a static method named fixSpacing that accepts a Scanner representing a file as a parameter and writes that file's text to

the console, with multiple spaces or tabs reduced to single spaces between words that appear on the same line.

Engineering
1 answer:
Umnica [9.8K]4 years ago
8 0

Answer:

See the code and explanation below

Explanation:

Is neccesary that accepts a Scan  representing a file as a parameter and writes that file's text on the language, and we need to reduce the multiple spaces to single spaces between  words that appear using just one line. Each word is to appear on the same line  in output as it appears in the file. We need to consider that the lines can be blank.

The code on Jave is this one:

public void DavidSpaces(Scan sc) {

   while(sc.hasNextLine()) {

       String line = sc.nextLine();

       Scanner linesc = new Scan(line);

       while(linesc.hasNext())

           System.out.print(linesc.next() + " ");

       System.out.println();

   }

}

The algorithm scheme is given on the picture attached.

You might be interested in
How can I skip more helppppppppppppppppppppppp
AfilCa [17]

Answer: skip what

Explanation:

4 0
3 years ago
Read 2 more answers
Reverse masking forms a soft edge on the panel.
valina [46]
True I think I’m not sure?
7 0
2 years ago
Design a plate and frame heat exchanger for the following problem:
qwelly [4]

Answer:

See explaination and attachment.

Explanation:

Iteration method is a repetitive method applied until the desired result is achieved.

Let the given equation be f(x) = 0 and the value of x to be determined. By using the Iteration method you can find the roots of the equation. To find the root of the equation first we have to write equation like below

x = pi(x)

Let x=x0 be an initial approximation of the required root α then the first approximation x1 is given by x1 = pi(x0).

Similarly for second, thrid and so on. approximation

x2 = pi(x1)

x3 = pi(x2)

x4 = pi(x3)

xn = pi(xn-1).

please go to attachment for the step by step solution.

8 0
3 years ago
What are some common work contexts for Licensing Examiners and Inspectors? Select four options.
Akimi4 [234]

According to O*NET, the common work contexts for Licensing Examiners and Inspectors include:

  1. Telephone
  2. Face-to-face discussions
  3. Contact with others
  4. Importance of being exact or accurate.

O*NET is an acronym for occupational information network and it refers to a free resource center or online database that is updated from time to time with several occupational definitions, so as to help the following categories of people understand the current work situation in the United States of America:

  • Workforce development professionals
  • Students
  • Human resource (HR) managers
  • Job seekers
  • Business firms

On O*NET, work contexts are typically used to describe the physical and social elements that are common to a particular profession or occupational work. Also, the less common work contexts are listed toward the bottom while common work contexts are listed toward the top.

According to O*NET, the common work contexts for Licensing Examiners and Inspectors include:

1. Telephone

2. Face-to-face discussions

3. Contact with others

4. Importance of being exact or accurate.

Read more on work contexts here: brainly.com/question/22826220

6 0
3 years ago
Read 2 more answers
The ___________ section of the bid package might include information concerning provisions for water and other utilities, sanita
dexar [7]

Answer:

Procurement Process

Explanation:

Procurement Process describes the series of activities that an organization partakes in to get products or services in order to achieve their goals. The choice of the procurement process is very important for the success of a construction project.

So during a bidding process, the procurement process is section where the organization will need to get water and other utilities, sanitation equipment or storage needed for the success of a construction project.

3 0
4 years ago
Other questions:
  • The assembly consists of two red brass C83400 copper alloy rods AB and CD of diameter 30 mm, a stainless 304 steel alloy rod EF
    11·1 answer
  • Explain about Absolute viscosity, kinematic viscosity and SUS?
    11·1 answer
  • Air enters a compressor operating at steady state with pressure of 90 kPa, at a temperature of 350 K, and a volumetric flow rate
    13·1 answer
  • For the pipe-fl ow-reducing section of Fig. P3.54, D 1 5 8 cm, D 2 5 5 cm, and p 2 5 1 atm. All fl uids are at 20 8 C. If V 1 5
    10·1 answer
  • _______ is a material property that pertains to local resistance to plastic deformation, such as scratching or denting. It is of
    10·1 answer
  • An actual vapour compression system comprises following process represents a. 1-2 Compression process b. 2-3 Condens 1 (or heat
    5·1 answer
  • Considering the two tables below called Orders and OrderLines, how many rows would be returned by this SQL query? SELECT o.Order
    10·1 answer
  • Describing Tasks for Stationary Engineers Click this link to view O*NET’s Tasks section for Stationary Engineers. Note that comm
    12·2 answers
  • 4.7 If the maximum tensile force in any of the truss members must be limited to 22 kN, and the maximum compressive force must be
    9·1 answer
  • A) If a given directional antenna can receive 15 times the power of an isotropic antenna, what is
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!