I wrote this program, and wanted to make it go into an applet or an executable file, but I don't know how. Please help!Code:import java.io.*;
import java.util.*;
public class Program1
{
public static void main(String args[])
{
while (true){
Scanner kbReader = new Scanner(System.in);
System.out.println("Hello Friends, I am here to put together a short story");
System.out.println("about you and your life");
System.out.println(" ");
System.out.println("What is your name? (Hint: Just your first name)");
String a = kbReader.next();
System.out.println(" ");
System.out.println("How old are you?");
String b = kbReader.next();
System.out.println(" ");
System.out.println("Are you male or female?");
String e = kbReader.next();
System.out.println(" ");
System.out.println("Do you have any pets? Y or N?");
String c = kbReader.next();
System.out.println(" ");
String thisbetterwork = "thisbetterwork";
String kool = "kool";
String kooler = "kooler";
if (c.equals("Y"))
{
System.out.println("How many?");
String d = kbReader.next();
String yesorno;
yesorno = "does";
thisbetterwork = "do";
String tolol;
String tololol;
String tolololol;
String tololololol;
if (d.equals("1"))
{
System.out.println("Just one? Ok, now we will move on.");
tolol = "1";
}
else if (d.equals("2"))
{
System.out.println("Impressive, I know many cool people who have 2!");
tolol = "2";
}
else if (d.equals("3"))
{
System.out.println("Wow! That is even more than I have! :D");
tolol = "3";
}
else if (d.equals("4"))
{
System.out.println("You do realize that you are maxed out on pets in Denver, right?");
tolol = "4";
}
else if (d.equals("end"))
{
System.exit(0);
}
else
{
System.out.println("You do realize that if you are in Denver you are breaking the law, right?");
tolol = "more than 4";
}
}
else if(c.equals("N"))
{
System.out.println("Oh, well then, we will skip the pet part then. :(");
String yesorno;
String maybeso;
yesorno = "doesn't";
thisbetterwork = "don't";
}
else if (c.equals("end"))
{
System.exit(0);
}
else
{
System.out.println("Sorry, try again");
}
if (e.equals("male"))
{
e = "he";
String t;
c = "his";
t = "his";
kool = "He";
}
else if (e.equals("female"))
{
e = "she";
c = "her";
kool = "She";
}
else if (e.equals("end"))
{
System.exit(0);
}
else
{
System.out.println("Not recongnized, please try again");
}
System.out.println(" ");
System.out.println("Do you like this class? Y or N");
String dkd = kbReader.next();
String tololol;
if (dkd.equals("Y"))
{
System.out.println("So do I!");
tololol = "like";
kooler = "likes";
}
else if (dkd.equals("N"))
{
System.out.println("Why not? I think that it is lots of fun!");
tololol = "do not like";
kooler = "doesn't like";
}
else if (dkd.equals("end"))
{
System.exit(0);
}
else
{
System.out.println("Please Try Again");
}
System.out.println(" ");
String yesorno;
System.out.println("Please wait as I compute and process a personalized story about you...");
System.out.println(" ");
System.out.println("Done. Printing your personalized story now to your screen.");
System.out.println(" ");
System.out.println("Hi! I know a person, "+c+" name is "+a+". "+e+" is "+b+" years old. "+c+" "+thisbetterwork+" have pets."+kool+" "+kooler+" this class.");
System.out.println(" ");
}
}
}

