SHARE
TWEET

APCS_SHORTS_C1X3_TicTacToePrinter.java

calcpage Oct 4th, 2013 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. TicTacToePrinter.java   MrG     2013.1002
  3. purpose:                use println to make a tictactoe board
  4. required files:         TicTacToePrinter.java           main class
  5. translator phase:       javac TicTacToePrinter.java
  6. interpreter phase:      java TicTacToePrinter
  7. */
  8.  
  9.  
  10. //main method
  11. public class TicTacToePrinter
  12. {
  13.         public static void main(String[] args)
  14.         {
  15.                 System.out.println("+---+---+---+");
  16.                 System.out.println("|   |   |   |");
  17.                 System.out.println("+---+---+---+");
  18.                 System.out.println("|   |   |   |");
  19.                 System.out.println("+---+---+---+");
  20.                 System.out.println("|   |   |   |");
  21.                 System.out.println("+---+---+---+");
  22.         }
  23. }
  24.  
  25. /*C1X4 StaircasePrinter:
  26.  
  27. +---+---+---+---+
  28. |   |   |   |   |
  29. +---+---+---+---+
  30. |   |   |   |   |
  31. +---+---+---+---+
  32. |   |   |   |   |
  33. +---+---+---+---+
  34. |   |   |   |   |
  35. +---+---+---+---+
  36.  
  37. */
RAW Paste Data
Top