Search:

Type: Posts; User: JavaPF

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    6,806

    Re: filling an array with strings

    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:
    ...
  2. Replies
    3
    Views
    6,806

    Re: filling an array with strings

    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?
    ...
Results 1 to 2 of 2