Your name Date Explanation of Program Modifying the first

/* *Your name *Date * *Explanation of Program *-Modifying the first program * - print,printf, escape values, arithmetic operators */ public class Welcome1 { //main method begins execution f Java application public static void main (String [] args) { System.out.println(\"Welcome to Java Programming\"); }//end method mai }//end class Welcome1 /* Output copied from display/message windowo * ----jGRASP exec: java Welcome1 *Welcom to Java Programming * *----jGRASP: operation complete. */ in JAVA

Please edit this program in Java using new commands

Solution

Using the following commands you can print the output in java:

System.out.write(\"Message Here\".getBytes());

System.out.format(\"%s\", \"Message Here\");

PrintStream ot = new PrintStream(new FileOutputStream(FileDescriptor.out));
ot.print(\"i love Java\");

System.err.print(\"Message Here\");

/* *Your name *Date * *Explanation of Program *-Modifying the first program * - print,printf, escape values, arithmetic operators */ public class Welcome1 { //m

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site