Presentation is loading. Please wait.

Presentation is loading. Please wait.

A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class.

Similar presentations


Presentation on theme: "A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class."— Presentation transcript:

1 A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class System { PrintStream out; } public class PrintStream { public static void println(String arg) { // carries out the print method } }

2 A Java Application Players Actions
Hello, System, PrintStream (out is the name of one of these) Actions main (controls the action) println(sends output to an output stream)

3 Reading the statement System.out.println(“Hello”);
System’s out’s println method. out is a member of System and println is a member of out.


Download ppt "A Java Application public class Hello { public static void main(String [] args) { System.out.println("Hello, World!"); } } public class."

Similar presentations


Ads by Google