這裏是我的代碼:如何解決語法錯誤在Eclipse Mars.1
import java.util.Scanner
class VersatileSnitSoft
public static void main (String [] args) {
double amount;
System.out.print (*What is the price of CD-ROM? *)
amount = myScanner.nextDouble();
amount = amount + 25.00;
System.out.print(*We will bill R*);
System.out.print(amount);
System.out.printIn(* to your credit card.*)
}
}
你究竟在哪裏得到錯誤?代碼示例中的哪些行。 – hotzst
爲什麼認爲星星之間可以寫一個字符串? – Tom