User:Drawde83~enwikibooks

String usage example
A program that uses strings will at some point use Input and Output so to make things easy I'm going to write a simple program to explain it. public static void main{ String myString = "Hello World";         // stores the string "Hello World" in the myString variable System.out.println(myString);           // prints out myString to the screen System.out.println("like my program?"); // This will also print a string to the screen }

Exercise

Write a program with System.out.println; and System.out.print; and see if it makes any difference.