为什么不打印if if?

时间:2014-09-17 15:08:12

标签: java if-statement

我试图制作基于文字的游戏但是我的If语句不会打印出来。怎么了?

   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? ");

0 个答案:

没有答案
相关问题