Most of my variable say that they cannot be resolved and I think my bracket/culrys are in the wrong place.
import java.util.*; public class test2 { public static void main(String[] args) { Scanner k=new Scanner(System.in); System.out.println("What is your first name?"); String f =k.nextLine(); System.out.println("What is your last name?"); String l=k.nextLine(); String n= (f + " " + l); System.out.println("Hello, " + n); System.out.println("How was your day? (good/bad)"); String d=k.nextLine(); if (d.equals("good")) { System.out.println("That's great. I'm so happy for you, " + f); System.out.println("What made your day so great"); String w=k.nextLine(); System.out.println("That is awesome!"); } else if (d.equals("bad")) { System.out.println("That's terrible! I feel so bad for you, " + f); System.out.println("What made your day bad"); String w=k.nextLine(); System.out.println("That stinks!"); } System.out.print("Did you have a good Thanksgiving?"); String t=k.nextLine(); if (t.equals("yes")) { System.out.println("Cool"); System.out.println("Was your whole family there?"); String y=k.nextLine(); } if (y.equals("yes")) { System.out.print("That must have been fun"); System.out.println("Was your whole family there?"); String y=k.nextLine(); else if (y.equals("no")) { System.out.print("That's too bad"); System.out.println("Did you have at least most of your family there?"); String h=k.nextLine(); } if (h.equals("yes")) { System.out.print("That's good"); else if (h.equals("no")) { System.out.print("Thats too bad, but at least you had a good Thanksgiving"); } else if (t.equals("no")) { System.out.println("Why not"); System.out.println("That's too bad"); System.out.println("Was your whole family there?"); String y=k.nextLine(); } else if (y.equals("no")) { System.out.print("That's too bad"); System.out.println("Did you have at least most of your family there?"); String h=k.nextLine(); } } if (h.equals("yes")) { System.out.print("That's good"); if (h.equals("no")) { System.out.print("Your Thanksgiving must have been terrible"); } } }