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
ss7ja [257]
4 years ago
15

Write an expression whose value is a reference to a newly created PrintWriter object associated with a file named "message.log".

The b>PrintWriter object should be created so that existing content in the file is not destroyed or overwritten, but rather output will be appended to any existing content.(Do not concern yourself with any possible exceptions here-- assume they are handled elsewhere.)
Computers and Technology
1 answer:
crimeas [40]4 years ago
8 0

Answer:

The expression of the following question are:

 new PrintWriter("message.log")

Explanation:

In the given statement, the value is the reference of the newly formed function's objects that linked to a file called 'message.log.' The b > PrintWriter object can be formed which is not to destroy or overwrite existing content in the file, but rather than to add result to any existing content. So, that's why firstly, we write "new" built-in keyword then, PrintWriter and pass that file in it.

You might be interested in
Write a program that reads an arbitrary number of integer that are in the range 0 - 50 inclusive and counts how many occurrences
Anna [14]

Answer:

Check the explanation

Explanation:

import java.util.Scanner;

public class Count

{

   public static void main(String[] args)

   {

       // creating array of store to store count of

       //every integer entered

       int[] store = new int[51];

       System.out.println("Enter any integers between"+

       " 0 and 50, and if you are done then enter any"+

       " integer out of the range");

       System.out.println("Enter Integer: ");

       //taking input of first integer

       Scanner scan = new Scanner(System.in);

       int integer = scan.nextInt();

       //looping for integers entered in range

       //to count its occurance

       while(integer >= 0 && integer <= 51)

       {

           //adding count to 'store' array of that

           //particular array of value entered

           store[integer] = store[integer] + 1;

           System.out.println("Enter Integer: ");

           integer = scan.nextInt();

       }

       //printing number of times each integer is entered

       System.out.println("printing number of times"+

           " each integer is entered");

       for (int i=0; i < 51; i++)

       {  

           if (store[i] > 0)

               System.out.println(i + ": " + store[i]);

       }

   }

}

Kindly check the result below

7 0
3 years ago
The part of the computer that provides access too the internet is?
koban [17]
The modem I believe...
6 0
3 years ago
Read 2 more answers
Write a recursive function that calculates the sum 11 22 33 ... nn, given an integer value of nin between 1 and 9. You can write
Dovator [93]

Answer:

The function in Python is as follows:

def sumDig(n):

if n == 1:

 return 11

else:

 return n*11 + sumDig(n - 1)

Explanation:

This defines the function

def sumDig(n):

This represents the base case (where n = 1)

if n == 1:

The function returns 11, when it gets to the base case

 return 11

For every other value of n (n > 1)

else:

This calculates the required sum recursively

 return n*11 + sumDig(n - 1)

3 0
3 years ago
a term to describe article that can be displayed in their entirety as opposed to abstract and reference only?​
Maurinko [17]

Answer:

would it be term and tequnique?

Explanation:

oooooooo

7 0
3 years ago
Select examples of software
WINSTONCH [101]

Answer: Computer programs, applications, photo editing program

Explanation:

Computer software is stuff you have downloaded on your computer. Mice and monitors are both physical objects, and therefore is not software. On the other hand, computer programs, applications, and a photo editing program are all on your computer and stuff you would have to download in order to have.

5 0
2 years ago
Other questions:
  • Alex has started a Google Search campaign designed to promote his online motorcycle accessories store. His store focuses on cust
    6·1 answer
  • Write a program that opens a text le called quiz.txt for reading. This le contains a single line with a student's rst name then
    15·1 answer
  • Can I recover pics I deleted like 9 months ago? ​
    13·2 answers
  • If an appliance consumes 500 W of power and is left on for 5 hours, how much energy is used over this time period?
    5·1 answer
  • ZeroIt is a function that takes one argument and returns no value. The argument is a pointer to int. The function stores the val
    15·1 answer
  • The destructor automatically executes when the class object goes out of ____.
    12·1 answer
  • A firm can survive and succeed in the long run if it successfully develops strategies to confront the _______________ that shape
    9·1 answer
  • Linux distributions automatically come with a native software firewall.TrueFalse
    13·1 answer
  • Assume a TCP sender is continuously sending 1,090-byte segments. If a TCP receiver advertises a window size of 5,718 bytes, and
    7·1 answer
  • It is a type of web page that allows you to share your ideas experiences and beliefs
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!