Lets code a mad libs game with Java! 📖 @BroCodez
Lets code a mad libs game with Java! 📖  @BroCodez
Uploaded December 2024 | Updated September 2026, 2 weeks ago
#java #javatutorial #javacourse

import java.util.Scanner;

public class Main {
public static void main(String[] args) {

// MAD LIBS GAME

Scanner scanner = new Scanner(System.in);

String adjective1;
String noun1;
String adjective2;
String verb1;
String adjective3;

System.out.print("Enter an adjective (description): ");
adjective1 = scanner.nextLine();
System.out.print("Enter a noun (animal or person): ");
noun1 = scanner.nextLine();
System.out.print("Enter an adjective (description): ");
adjective2 = scanner.nextLine();
System.out.print("Enter a verb ending with -ing (action): ");
verb1 = scanner.nextLine();
System.out.print("Enter an adjective (description): ");
adjective3 = scanner.nextLine();

System.out.println("\nToday I went to a " + adjective1 + " zoo.");
System.out.println("In an exhibit, I saw a " + noun1 + ".");
System.out.println(noun1 + " was " + adjective2 + " and " + verb1 + "!");
System.out.println("I was " + adjective3 + "!");

scanner.close();
}
}
Lets code a mad libs game with Java! 📖Python PyQt5 IMAGES are easy! 📷Useful NumPy functions you should know! 🎚️Learn Python in 1 hour! 🐍NumPy aggregate functions are easy! 📊Learn Python PyQt5 in 1 hour! 🐍Learn Java arrays in 9 minutes! 🍎Create Python buttons in 7 minutes! 🛎️Learn nested loops in 9 minutes! ➿Filtering in Pandas is easy! 🔍Learn Java enums in 10 minutes! 📅Lets code a temperature program with C programming! 🌡️
Bro Code |

Let's code a mad libs game with Java! 📖

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER