/** * Author: Josiah Yoder et al. * Class: SE2811-011 * Date: 1/6/14 7:50 AM * Lesson: Week 4, Day 1 */ package example4_1; /** * Post-class note: I probably shouldn't do this as an in-class * exercise next quarter */ public class StaticStuff { private static String message1 = "Default message"; private String message2 = "Default message 2"; public static void main(String args[]) throws InterruptedException { StaticStuff notStatic1 = (new StaticStuff()); StaticStuff notStatic2 = (new StaticStuff()); notStatic1.message1 = "Good morning"; notStatic1.message2 = "How are you?"; notStatic2.message1 = "Merry Christmas!"; notStatic2.message2 = "Happy New Year!"; System.out.println("notStatic1.message1: "+notStatic1.message1); System.out.println("notStatic1.message2: "+notStatic1.message2); System.out.println("notStatic2.message1: "+notStatic2.message1); System.out.println("notStatic2.message2: "+notStatic2.message2); } }