Source of Test.java


  1: //Test.java

  3: public class Test
  4: {
  5:     public static void main(String[] args)
  6:     {
  7:         OpeningScreen openingScreen = new OpeningScreen
  8:         (
  9:             "Your ID Info",
 10:             "Sub Number",
 11:             "Sub Title"
 12:         );
 13:         openingScreen.display();
 14:         TextItems textItems = new TextItems
 15:         (
 16:             Test.class.getResourceAsStream("some_info.txt")
 17:         );
 18:         textItems.displayItem("First");
 19:         textItems.displayItem("Second");

 21:         System.out.println
 22:         (
 23:             "\nAnd here is an easy way "
 24:             + "to get a pause in your program ..."
 25:         );
 26:         Utils.pause();
 27:     }
 28: }