public class ex1{private static void bingo(){System.out.format("%-8s %8s %8s %8s %8s", "B", "I", "N", "G", "O%n");System.out.format("%-8s %8s %8s %8s %8s", "2", "20", "42", "60", "64%n");System.out.format("%-8s %8s %8s %8s %8s", "14", "25", "32", "55", "70%n");System.out.format("%-8s %8s %8s %8s %8s", "5", "18", "FREE", "53", "67%n");System.out.format("%-8s %8s %8s %8s %8s", "12", "16", "31", "46", "75%n");System.out.format("%-8s %8s %8s %8s %8s", "10", "22", "39", "59", "71%n");}private static void bingorules(){System.out.println("Bingo Card\n");System.out.println("1. The caller randomly pulls a numbered bingo ball\n");System.out.println("2. The number is placed on the bingo board and called out\n");System.out.println("3. Players look for the called number on their bingo card\n");System.out.println("4. If the number is located, it is marked off\n");System.out.println("5. Steps 1 to 4 are repeated until a player matches the BINGO pattern.\n");System.out.println("6. The winning player tells BINGO.");}private static void rect(){System.out.println("***************");System.out.println("* *");System.out.println("* *");System.out.println("* *");System.out.println("* *");System.out.println("* *");System.out.println("* *");System.out.println("***************");}private static void rps(){System.out.println("Rock Paper Scissors Rules\n");System.out.println("Players decide on different hand signals to represent");System.out.println("rock, paper, and scissors.\n");System.out.println("Players make athrow at the same time\n");System.out.println("The hand signals thrown by the players are then comapared");System.out.println("to the rules of the game to determine the winner:\n");System.out.println("\t Rock dulls Scissors <Rock wins>.\n");System.out.println("\tScissors cuts paper <Scissors wins>.\n");System.out.println("\tPaper covers Rock <paper wins>.");}private static void tictactoe(){System.out.println(" | | ");System.out.println(" | | ");System.out.println(" | | ");System.out.println("-----------------");System.out.println(" | | ");System.out.println(" | | ");System.out.println(" | | ");System.out.println("-----------------");System.out.println(" | | ");System.out.println(" | | ");System.out.println(" | | ");}private static void tictactoerules(){System.out.println("Tic Tac Toe Rules\n");System.out.println("Tic Tac Toe is a game for 2 players.\n");System.out.println("1. A grid of 9 squares is drawn\n");System.out.println("2. The first player draws an X in an empty space\n");System.out.println("3. The second player draws an 0 in an empty square\n");System.out.println("4. Steps 2 and 3 are repeated until a tic tac patter in created\n");System.out.println("\t Patters can be diagonal, horizontal or vertical.\n");System.out.println("5. A winning patten is completed by drawing a line through the patter.\n");}private static void smileyface(){System.out.println(" ***** ");System.out.println(" * * ");System.out.println(" *_ _* ");System.out.println(" * o o * ");System.out.println("* | * ");System.out.println("* | * ");System.out.println(" * \\_____/ * ");System.out.println(" ********* ");}private static void term(){System.out.println("Java Terminology\n");System.out.println("Method:");System.out.println("A named set of statements that perform a single, well defined task.\n");System.out.println("Statement:");System.out.println("An instruction in a program");}public static void main(String[] args){//bingo();bingorules();rect();rps();tictactoe();tictactoerules();smileyface();term();}}