Whats wrong here?

<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.>
https://www.codecademy.com/en/courses/learn-java/projects/continents-cities?link_content_target=interstitial_project

<In what way does your code behave incorrectly? Include ALL error messages.>
Continents.java:13: error: cannot find symbol
System.out.print1n (“South America: Sao Paulo, Brazil”);
^
symbol: method print1n(String)
location: variable out of type PrintStream
Continents.java:17: error: cannot find symbol
System.out.print1n (“Europe: Moscow, Russia”);
^
symbol: method print1n(String)
location: variable out of type PrintStream
Continents.java:21: error: cannot find symbol
System.out.print1n (“Africa: Lagos, Nigeria”);
^
symbol: method print1n(String)
location: variable out of type PrintStream
Continents.java:25: error: cannot find symbol
System.out.print1n (“Asia: Shanghai, China”);
^
symbol: method print1n(String)
location: variable out of type PrintStream
Continents.java:29: error: cannot find symbol
System.out.print1n (“Australia: Sydney, Australia”);
^
symbol: method print1n(String)
location: variable out of type PrintStream
Continents.java:33: error: cannot find symbol
System.out.print1n (“Antarctica : McMurdo Station. US”);
^
symbol: method print1n(String)
location: variable out of type PrintStream
Continents.java:37: error: cannot find symbol
System.out.print1n (“Undefined continent!”);
^
symbol: method print1n(String)
location: variable out of type PrintStream
7 errors

```

Replace this line with your code.
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.print1n ("South America: Sao Paulo, Brazil");
    break;
    
  case 3:
    System.out.print1n ("Europe: Moscow, Russia");
    break;
    
  case 4:
    System.out.print1n ("Africa: Lagos, Nigeria");
    break;
    
  case 5:
    System.out.print1n ("Asia: Shanghai, China");
    break;
    
  case 6:
    System.out.print1n ("Australia: Sydney, Australia");
    break;

  case 7:
    System.out.print1n ("Antarctica : McMurdo Station. US");
    break;

  default:
    System.out.print1n ("Undefined continent!");
    break;
}
}

}

<do not remove the three backticks above>

It’s System.out.println not System.out.print1n

It’s l not 1(not one)

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