Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- TicTacToePrinter.java MrG 2013.1002
- purpose: use println to make a tictactoe board
- required files: TicTacToePrinter.java main class
- translator phase: javac TicTacToePrinter.java
- interpreter phase: java TicTacToePrinter
- */
- //main method
- public class TicTacToePrinter
- {
- public static void main(String[] args)
- {
- System.out.println("+---+---+---+");
- System.out.println("| | | |");
- System.out.println("+---+---+---+");
- System.out.println("| | | |");
- System.out.println("+---+---+---+");
- System.out.println("| | | |");
- System.out.println("+---+---+---+");
- }
- }
- /*C1X4 StaircasePrinter:
- +---+---+---+---+
- | | | | |
- +---+---+---+---+
- | | | | |
- +---+---+---+---+
- | | | | |
- +---+---+---+---+
- | | | | |
- +---+---+---+---+
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement