Then, remove the keyword final from the variable declaration: int[] arr = new int[600];
final
int[] arr = new int[600];
Also, some extra array tips: