(Solved) : 4 40 Pts Coded Following Line 26 Program Called Testjava Int 6 2 7 8 9 11 16 Line 26 Fix E Q43911540 . . .
4. (40 pts) You coded the following on line 26 of a programcalled Test.java: int a[6] = {2,7,8,9,11,16); //line26
Fix the errors in the above line of code. When you compile, youget the following messages: //There are 6 errors.
Test.java:26: ‘]’ expected
int a[6] ={2,7,8,9,11,16}; //line 26
^
Test.java:26: illegal start ofexpression
int a[6] ={2,7,8,9,11,16}; //line 26
^
Test.java:26: illegal start of expression
int a[6] = {2,7,8,9,11,16};//line 26
^
Test.java:26: not a statement
int a[6] = {2,7,8,9,11,16}; //line 26
^
Test.java: 26: “;” expected
int a[6] = {2,7,8,9,11,16}; //line 26
^
Test.java: 26: class, interface, or enum expected
}
^
6 errors
Expert Answer
Answer to 4. (40 pts) You coded the following on line 26 of a program called Test.java: int a[6] = {2,7,8,9,11,16); //line 26 Fix …
OR