Advertisement
ZhenghaoZhu

Madlib Project

Oct 26th, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.43 KB | None | 0 0
  1. //Zhenghao Zhu
  2. //Madlib Project
  3. //10/26/2015
  4.  
  5. import java.util.Scanner;
  6.  
  7. public class Madlib {
  8.   public static void main (String []args){
  9.    
  10.    Scanner input = new Scanner(System.in);
  11.    System.out.println("What's your name?");
  12.    String fullname = input.next();
  13.    System.out.println(fullname + " do you want to take a Madlib?");
  14.    String decision = input.next();
  15.    System.out.println(fullname + " could you give a color?");
  16.    String color = input.next();
  17.    System.out.println(fullname + " could you give a verb?");
  18.    String verb = input.next();
  19.    System.out.println(fullname + " could you give me an adjective?");
  20.    String adj = input.next();
  21.    System.out.println(fullname + " could you give me a noun?");
  22.    String noun = input.next();
  23.    System.out.println(fullname + " give me an verb?");
  24.    String verb2 = input.next();
  25.    System.out.println(fullname + " can you give me a dark adjective?");
  26.    String dadj = input.next();
  27.    System.out.println(fullname + " can you give me a sporty noun?");
  28.    String snoun = input.next();
  29.    System.out.println(fullname + " give me another color?");
  30.    String color2 = input.next();
  31.    System.out.println(fullname + " can you give me a liquidy adj?");
  32.    String ladj = input.next();
  33.    System.out.println(fullname + " could you give me an animal in plural?");
  34.    String animal = input.next();
  35.    System.out.println(fullname + " could you give me a sandwich ingredient?");
  36.    String ingredient = input.next();
  37.    System.out.println("Our school cafeteria has really " + color + " food." +
  38.    " Just thinking about it makes my stomach " +
  39.    verb + "." +
  40.    " The spaghetti is " + adj +
  41.    " and tastes like " + noun + "." +
  42.    " One day, I swear one of my meatballs started to pet " + verb2 +
  43.    "!" + " The turkey tacos are really " + dadj +
  44.    " and look kind of like old " + snoun + "." +
  45.    " My friend Dana actually likes the meatloaf, even though it's " + color2 +
  46.    " and " + ladj + "." +
  47.    "I call it \"mystery meatloaf\" and think it's really made out of " + animal +
  48.    "." + " My dad said he'd make my lunches, but the first day, he made me a sandwich out of " + ingredient +
  49.    " and peanut butter!" + " I think I'd rather take my chances with the cafeteria!");
  50.    System.out.println(" ");
  51.    System.out.println("Haha, you said " + decision + " to taking the Madlib, I did it anyway!");
  52.    System.out.println("Later " + fullname + "!");
  53.  
  54.    
  55.    
  56.   }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement