0

I'm trying to make a text based game but my If statement won't print. Whats wrong?

   System.out.print("What path do you choose?: ");
   String pathChoice= kb.nextLine();
   System.out.println(" ");
   System.out.println(" ");
   System.out.println(" ");
   if (pathChoice==("North") || pathChoice==("north")){
       System.out.println("You begin walking north and encounter an ogre of significant size.");
       System.out.println("You draw your crude sword. How will you attack? ");
Grilled
  • 1
  • 2

0 Answers0