output should look like this please add comments thank you D

output should look like this

please add comments. thank you.

Download and run Lincoln java Rename Lincoln java to Quotes java Find three quotes by different people. Modify Quotes. java Remove the Lincoln name and quote Add code to produce three quotes by different people. Your program should produce output similar to the following.

Solution

In java code,we can rename a file using oldName.renameTo(newName) method of File class.

Directly also we can rename the file using rename option.


public class Quotes
{
//-----------------------------------------------------------------
// Prints 3 ppl presidential quote.
//-----------------------------------------------------------------
public static void main(String[] args)
{
System.out.println(\"A quote by Mark Twain:\");

System.out.println(\"All generalizatios are flase,including this one.\");
  
   System.out.println(\"A quote by Douglas Adams:\");

System.out.println(\"Flyng is learning how to throw yourself at the ground and miss.\");
  
   System.out.println(\"A quote by Albert Einstein:\");

System.out.println(\"The value of achievement lies in the achieving.\");
}
}

output should look like this please add comments. thank you. Download and run Lincoln java Rename Lincoln java to Quotes java Find three quotes by different peo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site