189 views
0 votes
0 votes

Create a new project TMA01 in NetBeans and copy the following program into a new Java source file.

public method Q1PartA {

   public void main(String[] args) {

      System.out.println('a string");

   }

}

(i) Amend the program to correct the errors indicated by the error messages until there are no more syntax errors.

(ii) Run the program. Is there any error? If yes, copy and paste the error message into your answer file. What mistake has been made? Do the steps until all errors are removed.

Please log in or register to answer this question.

Related questions