import java.util.Scanner;
public class Control1 {
public static void main (String args[]) {
Scanner input = new Scanner (System.in);
UserInfo UserInfoObject = new UserInfo () ;
System.out.println ("Hello what is your name?");
String userName = input.nextLine ();
if (userName.equalsIgnoreCase("Shane")){
// Shane class comands
}
UserInfoObject.setName (userName);
UserInfoObject.resName();
System.out.println ("Is their something you spicific you wanted to talk about? (Yes or No)");
String TalkAbout = input.nextLine ();
if (TalkAbout.equalsIgnoreCase("Yes")){
System.out.println ("What would you like to talk about?");
String StalkAbout = input.nextLine ();
if (StalkAbout.equalsIgnoreCase("You")){
System.out.println ("I am S.A.L i was created and programed by Shane Alderdice, I am desighned to talk to users and respond acordingly");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
} else {
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
}
}
else if (TalkAbout.equalsIgnoreCase("No")){
System.out.println ("OK... How are you? (Good or Bad)");
String GorB = input.nextLine ();
if (GorB.equalsIgnoreCase("Good")){
System.out.println ("I'm glad to hear that and I hope things stay that way!");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
}
else if (GorB.equalsIgnoreCase("Bad")){
System.out.println ("I'm sorry to hear that what is wrong?");
}
else
System.out.println ("You did not answer with Good or Bad");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
else {
System.out.println ("You did not answer Yes or No");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
System.out.println ("(Program has reached end of a seqence please end program)");
}
}