Uknown code error


#1

https://www.codecademy.com/courses/learn-java/projects/continents-cities

Here are the error messages I receive. Continents.java:6: error: package system does not exist
case 1: system.out.println("North America: Mexico City, Mexico");
^
Continents.java:8: error: package system does not exist
case 2: system.out.println("South America: Sao Paulo, Brazil.");
^
Continents.java:10: error: package system does not exist
case 3: system.out.println("Europe: Moscow, Russia");
^
Continents.java:12: error: package system does not exist
case 4: system.out.println("Africa: Lagos, Nigeria");
^
Continents.java:14: error: package system does not exist
case 5: system.out.println("Asia: Shanghai, China");
^
Continents.java:16: error: package system does not exist
case 6: system.out.println("Austalia: Sydney, Australia");
^
Continents.java:18: error: package system does not exist
case 7: system.out.println("Antarctica: McMurdo Station, US");
^
Continents.java:20: error: package system does not exist
default: system.out.println("Undefined Continent!");
^
8 errors


public class Continents {
	public static void main(String[] args) {

		int continent = 4;
		switch (continent) {
          case 1: system.out.println("North America: Mexico City, Mexico");
        break;        
      case 2: system.out.println("South America: 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("Austalia: Sydney, Australia");
        break;        
      case 7: system.out.println("Antarctica: McMurdo Station, US");
        break;          
      default: system.out.println("Undefined Continent!");
        break;
  }
  }
}


#2

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