Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //aknan
- //October 27,2015
- //Madlib project
- import java.util.Scanner;
- public class MadLib
- {
- public static void main(String[] args)
- {
- Scanner input = new Scanner(System.in);
- System.out.println("What is your name?");
- String name = input.nextLine();
- System.out.println(name+"Do you want to play madlibs?");
- String answer=input.nextLine();
- System.out.println("Name an adjective.");
- String adjective = input.nextLine();
- System.out.println("Name a song title.");
- String song = input.nextLine();
- System.out.println("Name a celebrity.");
- String celebrity = input.nextLine();
- System.out.println("Name a feeling.");
- String feeling = input.nextLine();
- System.out.println("Name a verb.");
- String verb = input.nextLine();
- System.out.println("Name a place.");
- String place = input.nextLine();
- System.out.println("Name a food.");
- String food = input.nextLine();
- System.out.println("Name a object.");
- String object = input.nextLine();
- System.out.println("Name a person");
- String person = input.nextLine();
- System.out.println("I just got back from Florida " + person + ".");
- System.out.println("Can you believe we got to sing " + song + " and dance in the " + place + "?! Everyone was laughing and having a great time.");
- System.out.println("I made \'" + food + " and " + object + "\' pizza, which is my favorite!");
- System.out.println("They even stuffed the crust with " + object+ ". How " + feeling + "!");
- System.out.println("If that wasn't good enough already, " + celebrity + " was there singing " + song + ".");
- System.out.println("I was so inspired by the music, I had to get up out of my seat and " + verb + ".");
- System.out.println("Haha, you said " + answer + " to playing madlibs but I forced you to play any way.");
- System.out.println("Later " + name + ".");
- }//close main
- }//close class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement