I am getting stuck on step 3 , due to 1 error occurring at the getInfo() { System.out.println }.
This is my code:
public class Language{
protected String name;
protected int numSpeakers;
protected String regionsSpoken;
protected String wordOrder;
Language(String name, int numSpeakers, String regionsSpoken, String wordOrder){
this.name = langName;
this.numSpeakers = speakers;
this.regionsSpoken = regions;
this.wordOrder = wdOrder;
}
public void getInfo(){
System.out.println(this.name + " is spoken by " + this.numSpeakers + " people mainly in " + this.regionsSpoken ".");
System.out.println("The language follows the word order: " + this.wordOrder);
}
public static void main(String args){
Language spanish = new Language(“Spanish”, 55000000, “Spain, Latin America, and Equatorial Guinea”, “subject-verb-object”);
spanish.getInfo();
}
}