我试图获得帮助以使用我的汽车编译器运行我改变了一些东西并且我有 1 个错误
public class AutomobileDescription
{
/**
Constructor to display the make, model and price the new automobile I wish to purchase
*/
public AutomobileDescription(String carMake, String carModel, carPrice)
{
make = m;
model = mo;
price = p;
}
public String m =("Toyota");
public String mo =("Camry");
public String p =("22055");
public String getAutomobileinfo()
{
return m + mo + p;
Automobile myAutomobile = new Automobile(Toyota, Camry, 22055);
System.out.println("The Make, Model and Price of the car is: m + mo + p ");
}
}
----jGRASP exec: javac -g AutomobileDescription.java
AutomobileDescription.java:7:错误:预期的公共汽车描述(字符串 carMake,字符串 carModel,carPrice)^ 1 错误
----jGRASP楔2:进程退出代码为1。 ----jGRASP:操作完成。