public class MakeThings
2: /**
3: * A program to test the Thing class.
4: *
5: * @author Mark Young (A00000000)
6: */
7: public class MakeThings {
9: public static void main(String[] args) {
10: // create the variables
11: Thing one, two, cat, sally;
13: // create the objects
14: one = new Thing();
15: two = new Thing();
16: cat = new Thing("Cat", "Hat");
17: sally = new Thing ("Sally");
19: // print a story
20: System.out.println();
21: System.out.println("\"Let me introduce two things to you,\"");
22: System.out.println("said " + cat + ", with a bow.");
23: System.out.println("\"I call them " + one + " and " + two + ".\"");
24: System.out.println("\"They are lots of fun,\" he grinned, \"and how!\"");
25: System.out.println();
26: System.out.println("Then the Things started playing, "
27: + "and acting quite rough.");
28: System.out.println("They started knocking things down.");
29: System.out.println("\"I do not like " + one + " and " + two + ",\"");
30: System.out.println("said " + sally + " with a frown.");
31: System.out.println();
32: }
34: }