Help! Weird Error


#1

so i’ve been stuck on this for hours, here’s the error message

Continents.java:6: error: package system does not exist
system.out.println (“North America: Mexico City, Mexico”);
^
Continents.java:9: error: package system does not exist
system.out.println (“South America: Sao Paulo, Brazil”);
^
Continents.java:12: error: package system does not exist
system.out.println (“Europe: Moscow, Russia”);
^
Continents.java:15: error: package system does not exist
system.out.println (“Africa: Lagos, Nigeria”);
^
Continents.java:18: error: package system does not exist
system.out.println (“Asia: Shanghai, China”);
^
Continents.java:21: error: package system does not exist
system.out.println (“Australia: Sydney, Australia”);
^
Continents.java:24: error: package system does not exist
system.out.println (“Antartica: McMurdo Station, US”);
^
Continents.java:27: error: package system does not exist
system.out.println (“Undefined continent!”);
^
8 errors

public class Continents {
	public static void main(String[] args) {
int continent = 4;
switch (continent) {
  case continent: 1:
system.out.println ("North America: Mexico City, Mexico");
break; 	
  case continent: 2:
system.out.println ("South America: Sao Paulo, Brazil");
break; 
  case continent: 3:
system.out.println ("Europe: Moscow, Russia");
break;
  case continent: 4:
system.out.println ("Africa: Lagos, Nigeria");
break;
  case continent: 5:
system.out.println ("Asia: Shanghai, China");
break;
  case continent: 6: 
system.out.println ("Australia: Sydney, Australia");
break; 
  case continent: 7:
system.out.println ("Antartica: McMurdo Station, US");
break;
  default:
    system.out.println ("Undefined continent!");
break;	
}
  }
}

#2

Continents and Cities

It must be capitalized.

System.out.println()

#3

thank you very much for the help!


#4

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