I’ve been stuck on step 3 of the. Language Families Project for DAYS now, and it’s been very aggravating - https://www.codecademy.com/courses/learn-java/projects/java-language-families.
here’s my code (for the Language.java file) below:
public Language(langName. number, regions, order)
{
protected String name;
protected int numSpeakers;
protected String regionsSpoken;
protected String wordOrder;
Language (String whatItIs, int howManySpeakers, String where, String order)
{
name = whatItIs;
numSpeaers = howManySpeakers;
regionsSpoken = where;
wordOrder = order;
}
public getInfo()
{
System.out.println(this.name + " is spoken by "+ this.numSpeakers + " people mainly in "+ this.regionSpoken + “.”);
System.out.println("The language follows the word order: " + this.wordOrder);
}
public void main(args)
{
Language spanish = new Language(“Spanish”, 55500000. “Spain, LatinAmerica and Equatorial Guinea”, “subject-verb-object”);
spanish.getInfo();
}
}
Then my terminal window is:
$ javac Language
error: Class names, ‘Language’, are only accepted if annotation processing is explicitly requested
1 error
So II just don’t understand what I’m doing wrong, can someone help?
Thank you in advance!