// Simple program that demonstrates the use of a String parameter. // Also demonstrates the use of String variables. public class SayHello { public static void main(String[] args) { sayHello("Kyle"); String someone = "Alan"; sayHello(someone); someone = "Meredith"; sayHello(someone); } // prints a hello message using the given name public static void sayHello(String name) { System.out.println("hello " + name + ", how are you?"); } }