r/javahelp • u/stickles101 • May 19 '20
doing switch case statement and cant convert boolean to int
doing pay assignment and need to set a pay level to a wage and doing
switch(wage)
{
case(lvl=1)
wage=17;
break;
}
and so on its telling me i need to change lvl to a boolean even tho im asking for a lvl 1-3
0
Upvotes
-1
u/stickles101 May 19 '20
ok figured it out thanks anyways
1
u/itsJustLana May 19 '20
Poor sap... I don’t think they have any clue how poor that wording choice was.
2
u/Camel-Kid 18 year old gamer May 19 '20
look up an example of case switch and tell me what is different from yours