public class GFG {
public static void main(String[] args)
{
int[] intArr = new int[] { 1, 2, 3, 4 };
System.out.println(Arrays.toString(intArr));
}
}
Result:
/GFG.java:16: error: cannot find symbol
System.out.println(Arrays.toString(boolArr));
^
symbol: variable Arrays
location: class GFG
1 error
I tried a number of times and keep getting this error. What's the issue here?