java - I want use lower and upper case in the terminal for choosing -
java - I want use lower and upper case in the terminal for choosing -
i want utilize lower , upper case in terminal choosing
in cases in code can utilize upper case, want utilize both
case 's ': { system.out.println("file status: "+partyplaner.getfilestatus()); break; } case 'n': { system.out.print("enter new name planner:"); string newname = keyboard.nextline(); partyplaner.setplannername(newname); break; }
cast variable switching on uppercase() example. within switch statement, variable in uppercase, , need come in uppercase "cases".
switch(s.toupper()){...}
java
Comments
Post a Comment