Cannot for the life of me to get this code to work no matter what I change it to

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

```

Replace this line with your code.

<do not remove the three backticks above>

Replace this line with your code.

public string Continent{
public switch string void main(String args)
{

int Continent = 4;
switch = continentString;
switch (continent)
{

case ‘1’: System.out.printiln(“North Amrica: Mexico City, Mexico”) ;
break;
case ‘2’: System.out.println(“South Amrica: Sao Paulo, Brazil”) ;
break;
case ‘3’: System.out.println(“Europe: Moscow; Russia”) ;
break;
case ‘4’: System.out.println(“Africa: Lagos, Nigeria”) ;
break;
case ‘5’: System.out.println(“Asia: Shanghai, China”) ;
break;
case ‘6’: System.out.println(“Australia: Sydney, Australia”);
break;
case ‘7’: System.out.println(“Antarctica: McMurdo Station, US”);
break;
default : System.out.println(“Undefind Continent”);
break;
}
}
}
}

Check the spelling…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.