-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMadLibsGames.java
More file actions
32 lines (27 loc) · 1.11 KB
/
MadLibsGames.java
File metadata and controls
32 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package LearningWithExercises;
import java.util.Scanner;
public class MadLibsGames {
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.println("enter an adjective(description)");
adjective1= scanner.nextLine();
System.out.println("enter a noun (naming word)");
noun1= scanner.nextLine();
System.out.println("enter an adjective(description)");
adjective2= scanner.nextLine();
System.out.println("enter a verb end with -ing (action)");
verb1= scanner.nextLine();
System.out.println("enter an adjective(description)");
adjective3= scanner.nextLine();
System.out.println("Today i went to "+adjective1 +"Zoo");
System.out.println("In exhibit , I saw a "+noun1+".");
System.out.println(noun1 +" was "+adjective2 +"and "+verb1+"!");
System.out.println("I was "+adjective3 + "!");
}
}