-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.java
More file actions
46 lines (31 loc) · 1.39 KB
/
code.java
File metadata and controls
46 lines (31 loc) · 1.39 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import java.util.Scanner;
public class Mad_Libs_Game {
public static void main(String[] args) {
//MAD LIBS GAME
Scanner scanner = new Scanner(System.in);
String adjective1;
String noun1;
String noun2;
String verb1;
String adjective2;
String adjective3;
System.out.print("Enter an Adjective (Description of Something): ");
adjective1 = scanner.nextLine();
System.out.print("Enter a Noun (name of animal or person): ");
noun1 = scanner.nextLine();
System.out.print("Enter a Noun (name of animal or person): ");
noun2 = scanner.nextLine();
System.out.print("Enter another adjective: ");
adjective2 = scanner.nextLine();
System.out.print("Enter a Verb (action word, ending with -ing): ");
verb1 = scanner.nextLine();
System.out.print("Enter another Adjective: ");
adjective3 = scanner.nextLine();
System.out.println(" ");
System.out.println("Today, I work at an " + adjective1 + " " + "office" + "." );
System.out.println("My " + noun1 + " " + "is after my life " + ".");
System.out.println( noun2 + " " + "is not helping matters with their " + adjective2 + " " + "of 'dress codes', which is " + verb1 + "." );
System.out.println("May God " + adjective3 + " " + "us all" + "!" );
scanner.close();
}
}