Have no fear symptom man is here!
Here is the solution that you guys have led me to come up with for that annoying sym;ptom question. Hope you find many errors in it an belittle me ^^;
import java.util.*;
import java.text.*;
publicclass Medicine
{
publicstaticvoid main(String[]args)
{
String answer, ansCold;
int symptom;
Scanner scan=new Scanner(System.in);
do{
System.out.println("1. Do you have a headache?");
System.out.println("2. Are yu having trouble sleeping at night?");
System.out.println("3. Do you have a stomahc ache?");
symptom=scan.nextInt();
if(symptom==1)
{
System.out.println("You need tylenol or asprin");
}
if(symptom==2)
{
System.out.println("Are you experiencing a cold also?:");
ansCold=scan.nextLine();
if(ansCold.equalsIgnoreCase("yes"));
{
System.out.println("You need Niquill :)");
}
}
if(symptom==3)
{
System.out.println("You need Pepto-Bismal");
}
else
System.out.println("I'm sorry i did not find any medicine which will meed your symptom");
System.out.println("Would you like to try again?");
answer=scan.next();
}while(answer.equalsIgnoreCase("y"));
}
}
You like eh?

