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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -