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
Julli [10]
3 years ago
9

Given an initialized String variable message, and given a PrintWriter reference variable named output that references a PrintWri

ter object, write a statement that writes the string referenced by message to the file in to which output streams.
Computers and Technology
1 answer:
vredina [299]3 years ago
7 0

Answer:

The output streams to this question is "output.print(message)".

Explanation:

The description of the following can be given as:

  • In the given question it is define a string datatype variable that is "message".
  • Then we create a reference variable of PrintWriter class that is "output" and call string type variable that is message by the use of the print function we print message.  
You might be interested in
Define a method named swapValues that takes an array of four integers as a parameter, swaps array elements at indices 0 and 1, a
Luba_88 [7]

The program is an illustration of arrays.

Arrays are used to hold multiple values.

The program in java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

   //This defines the method

public static int[] swapValues(int[] arr) {

   //This swaps the first and second array elements

       int temp = arr[0];

       arr[0] = arr[1];   arr[1] = temp;

   //This swaps the third and fourth array elements

       temp = arr[2];

       arr[2] = arr[3];   arr[3] = temp;

   //This returns the swapped array to main

       return arr;

}

//The main method begins here

   public static void main(String[] args) {

       //This creates a Scanner object

       Scanner input = new Scanner(System.in);

 //This declares an array of 4 elements

 int[] intArray = new int[4];

 //This gets input for the array

 for(int i = 0; i<4;i++){

     intArray[i] = input.nextInt();

 }

 //This calls the swapValues method

 intArray=swapValues(intArray);

 //This prints the swapped array

 for (int i = 0; i < 4; i++){

 System.out.print( intArray[i]+ " ");     }

}  

}

At the end of the program, the elements are swapped and printed.

Read more about similar programs at:

brainly.com/question/14017034

6 0
3 years ago
When purchasing a security program, you must make sure that _____. Select 2 options.
Oliga [24]

Answer:

1 ans 3

Explanation:

3 0
2 years ago
What computer use for?
nlexa [21]

Answer:

to give us correct information.

i think

3 0
3 years ago
Read 2 more answers
Data sets can be described as instances when the software didn't work as expected.
lozanna [386]

Answer:

True.

Explanation:

This is true because that can mean the same thing.

5 0
3 years ago
What if the result of conectivity testing is 100%Loss?Explain.​
kari74 [83]

Answer:

If you have a 100% packet loss, it means that all packets get lost between certain hops on your connection. Which, in turn, renders you unable to reach the destination server

8 0
3 years ago
Other questions:
  • Which mitigation technique would prevent rogue servers from providing false ip configuration parameters to clients?
    5·2 answers
  • ____ uses markup to define the structure and layout of a web document.
    11·1 answer
  • Victoria enjoys laughing with her friends as they walk around the track after school. Which best describes her hate rate during
    5·1 answer
  • There are many modes of remote visual communication. Which is the most common mode?
    10·2 answers
  • ¿Que es una linea del tiempo?
    8·1 answer
  • 2
    11·1 answer
  • What is meant by the term drill down?
    10·1 answer
  • Disrupting a business's ability to conduct electronic commerce is cönsidered an act of
    6·1 answer
  • Cuales son las caracteristicas de los celulares
    9·1 answer
  • Help help help help help!!!
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!