自動車用コンパイラで実行するためのヘルプを取得しようとしていますが、いくつかのことを変更しましたが、エラーが 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: エラー: 予想される public AutomobileDescription(String carMake, String carModel, carPrice) ^ 1 エラー
----jGRASP wedge2: プロセスの終了コードは 1 です。----jGRASP: 操作が完了しました。