ArrayStoreException - Is generated if the specified value is not of a runtime type that can be stored in the specified array.
The specified array needs to be a String. If you updated it to:
...
Type: Posts; User: JavaPF
ArrayStoreException - Is generated if the specified value is not of a runtime type that can be stored in the specified array.
The specified array needs to be a String. If you updated it to:
...
Can we see the Student class?
The first part of the code seems to be correct. Make sure you import java.util.Arrays;
Why are you doing students[i] = "0"; in the for loop?
...