0
public class Program { public static void main(String[] args) { int[ ] intArr = new int[6,7,5]; System.out.println(intArr.length); } }
what is the error??
2 Réponses
+ 4
The following line is correct for what you want.
int[] intArr = {6,7,5};
You are initializing your array incorrectly. You don't need to put "new int". Just put curly braces with the int values you want.
+ 1
{in this}