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


#1



Replace this line with your code.


#2

Replace this line with your code.


#3

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;
}
}
}
}


#4

Check the spelling...


#5

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