私はこの問題を何度も経験しており、おそらく世界で最も簡単に修正できるものですが、何らかの理由で修正できません。
JCreator は、クラス行に '{' が既に存在することを想定しています。動かしていろいろやってみたのですが、よくわかりません。以前非公開にして直したのですが、今回はうまくいきませんでした。助けてください。
import java.util.Scanner;
public class project 3 4 {
public static void main(String [] args)
{
Scanner reader = new Scanner(System.in);
int employeeID;
double regularPay;
double regularHoursWorked;
double regularMoneyEarned;
double overtimeHoursWorked;
double overtimePay;
double totalPay;
System.out.print ("Employee ID");
employeeID = reader.nextInt();
System.out.print ("Enter Wage");
regularPay = nextDouble();
System.out.print ("Enter Hours Worked");
regularHoursWorked = nextDouble();
System.out.print ("Enter Overtime Hours Worked");
overtimeHoursWorked = nextDouble();
overtimePay = 1.5 * regularPay;
regularMoneyEarned = regularPay * regularHoursWorked;
totalPay = overtimePay + regularMoneyEarned;
System.out.print ("Your total pay = " + totalPay);