Given that an ArrayList named a with elements of type Integer has been declared, assign 3 to its first element.

Given that an ArrayList named a with elements of type Integer has been declared, assign 3 to its first element.

LANGUAGE: JAVA

CHALLENGE:

Given that an ArrayList named a with elements of type Integer has been declared, assign 3 to its first element.

SOLUTION:


a.set(0,3);

Add comment