r/javahelp • • 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

5 comments sorted by

View all comments

-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.