Jokinator: A Fun Joke Generator

This Java program allows users to select categories of jokes and rate them. Users can choose between jokes about school moments or meat processing byproducts, and then provide ratings for jokes they hear. A great way to lighten the mood!
 avatar
unknown
java
20 days ago
2.0 kB
3
Indexable
import java.util.Scanner;

public class Jokinator {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("1) Jokes about School Moments");
        System.out.println("2) Jokes about meat processing byproduct");
        System.out.print("Enter your choice here (by typing the number corresponding to the option you would like) > ");
        int choice = scan.nextInt();
        if (choice == 1){
            System.out.println("1) Why did the math book look so sad? Because it had too many problems.");
            System.out.println("2) What did the janitor say when he jumped out of the supply closet? \"Supplies!\"");
            System.out.println("3) Why did the student eat his homework? The teacher said it was a piece of cake!");
            System.out.print("Rate Joke One out of Five > ");
            int joke1 = scan.nextInt();
            System.out.print("Rate Joke Two out of Five > ");
            int joke2 = scan.nextInt();
            System.out.print("Rate Joke Three out of Five > ");
            int joke3 = scan.nextInt();
            //Joke Score logic goes here

        }
        else if (choice == 2){
            System.out.println("1) What’s the byproduct’s favorite weather? Meat-eor showers.");
            System.out.println("2) The byproduct opened a museum featuring prehistoric cuts—it was a meaty-saurus exhibit.");
            System.out.println("3) What did the meat processing byproduct say to the other meat processing byproduct? You look as though you are the byproduct of processing meat!");
            System.out.print("Rate Joke One out of Five > ");
            int joke1 = scan.nextInt();
            System.out.print("Rate Joke Two out of Five > ");
            int joke2 = scan.nextInt();
            System.out.print("Rate Joke Three out of Five > ");
            int joke3 = scan.nextInt();
            //Joke Score logic goes here
        }
    }
}
Editor is loading...
Leave a Comment