Jump to content

Duplicate Case error Java

TheMidnightNarwhal
Go to solution Solved by TheMidnightNarwhal,

Nevermind I am an idiot. Ayyy lmao

So this is my code and on the third and fourth lines I get "duplicate label" and on the fourth I get "illegal start if expression".

        switch (total)           {            case "11111":partie += 5000;break;case "11110":case"01111":case"11101":case"10111":partie += 5000;break;case"11100": case"01110": case"00111":case"10110":case"10011":case"10011":case"01101":case"11001":case"11010":case"10101":partie+=700;break;case"22200":case"02220":case:"00222":case"20220":case"20022":case"20022":case"02202":case"22002":case"22020":case"20202":partie += 200;break;                                                      }
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×