Trying to turn a boolean into integer. The output is always true, need to be what the user inputs. 1- for true 2 for false

后端 未结 0 1518
旧巷少年郎
旧巷少年郎 2020-12-10 04:51

private static boolean getBoolean(String string) {

String decision;
boolean yn = true;
            
if(yn) {
    System.out.println("Is the tree deciduou         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题