私のコードの一部を以下に示します。(ステートメントillegal start of type
の行で) 一定のエラーが発生するため、コンパイルできません。if
変更するにはどうすればよいですか?
public class Job
{
boolean jobsCompleted = false;
Job firstJob = getCurrentJob();
String jobName = firstJob.getName();
int jobDuration = firstJob.getDuration();
if (!myJob.isEmpty()&& jobDuration > 0 && jobDuration <= myTotalDuration)
//this is where i am getting the error, highlighting red before the 'if' statement.