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