Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by jrees ( 6 years ago )
/**
* @jrees
* 9/29
* MadLib assignment
*
*/
import java.util.Scanner;
public class MadLib
{
public static void main(String[] args)
{
//Prompt for strings (5 minimun, 2 nouns, 1 adjective, 1 verb and an adverb)
Scanner in = new Scanner(System.in);
System.out.println("Please enter your first noun");
String noun1 = in.nextLine();
System.out.println("There once was a girraffe named " + noun1);
System.out.println("Please enter your first verb");
String verb1 = in.nextLine();
System.out.println("The girraffe " + verb1 + " through the fields");
System.out.println("Please enter your second noun (Plural)");
String noun2 = in.nextLine();
System.out.println("The girrafe met an elephant who liked to carry " + noun2);
System.out.println("Please enter your first adjective");
String adjective1 = in.nextLine();
System.out.println("They would eat " + adjective1 + " grapes while looking at the sunset");
System.out.println("Please enter your first adverb");
String adverb1 = in.nextLine();
System.out.println(" " + adverb1 + "they would go to sleep and live in a cave forever, until eventually they would get trapped inside due to a landslide and live a slow and painful death together.");
}
}
Revise this Paste