[SOLVED][CharGen] I dont know what i am doing wrong.
Im prolly doing A LOT wrong but it works fine up until i try to assign the Strings based on the random numbers generated. The random Numbers work. and i can output them fine, but when i try to assign a sting a value based on the int random generated, it keeps choosing the last option from each variable. https://code.sololearn.com/ci96xmLBZYc4/#java Update: I took Rrestoring faith's suggestion. but everytime i run it it seems like it is ignoring my use of Switch/Case. when i put it in Eclipse it is giving me CE HUMAN null/null every time but when i try to run it oon here i get Compilation error now i have 6 errors: ..\Playground\:69: error: variable randClass is already defined in method main(String[]) int randClass = (int)(Math.random() * 12); ^ ..\Playground\:70: error: cannot find symbol switch(charClass){ ^ symbol: variable charClass location: class charGen ..\Playground\:70: error: illegal start of type switch(charClass){ ^ ..\Playground\:83: error: variable randClass is already defined in method main(String[]) int randClass = (int)(Math.random() * 12); ^ ..\Playground\:84: error: cannot find symbol switch(charClass){ ^ symbol: variable charClass location: class charGen ..\Playground\:84: error: illegal start of type switch(charClass){ ^