public class Output
2: /**
3: * Output.java -- just some output commands
4: *
5: * @author Mark Young (A00000000)
6: * @version 1.1, 2014-09-09
7: */
8: public class Output {
10: public static void main(String[] args) {
11: // Introduce myself
12: System.out.println("\nSimple Output\n");
14: // code from slide 39 [[2014 NOTE: not ths year's slides!]]
15: System.out.println("This is a String!");
16: System.out.println(10);
17: System.out.println(45);
18: System.out.println(10 + 45);
20: // code from slide 40
21: System.out.println("Hello!");
22: System.out.print("Bye");
23: System.out.print("-");
24: System.out.print("bye");
25: System.out.println("!!!");
27: // code from slide 41
28: System.out.println(23 + "skidoo");
29: System.out.println("10 + 34 is " + (10 + 34));
31: // code from slide 42
32: System.out.println("This is OK. "
33: + "And I can add more here. "
34: + "Even a number: " + 42);
35: }
37: }