File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /**
2- * Example program that demonstrates print vs println.
3- */
4- public class Goodbye {
5-
6- /**
7- * Prints a greeting.
8- */
9- public static void main (String [] args ) {
10- System .out .print ("Goodbye, " ); // note the space
11- System .out .println ("cruel world" );
12- }
13-
14- }
1+ /**
2+ * Example program that demonstrates print vs println.
3+ */
4+ public class Goodbye {
5+
6+ /**
7+ * Prints a greeting.
8+ */
9+ public static void main (String [] args ) {
10+ System .out .print ("Goodbye, " ); // note the space
11+ System .out .println ("cruel world" );
12+ }
13+
14+ }
Original file line number Diff line number Diff line change 1- public class Hello {
2-
3- public static void main (String [] args ) {
4- // generate some simple output
5- System .out .println ("Hello, World!" );
6- }
7-
8- }
1+ public class Hello {
2+
3+ public static void main (String [] args ) {
4+ // generate some simple output
5+ System .out .println ("Hello, World!" );
6+ }
7+
8+ }
Original file line number Diff line number Diff line change 1- public class HelloWorld {
2- public static void main (String [] args ){
3- System .out .println ("Hello World!" ); //prints Hello World!
4- System .out .println ("What's up?" );
5- }
6- }
1+ public class HelloWorld {
2+ public static void main (String [] args ){
3+ System .out .println ("Hello World!" ); //prints Hello World!
4+ System .out .println ("What's up?" );
5+ }
6+ }
You can’t perform that action at this time.
0 commit comments