Search:

Type: Posts; User: Norm

Search: Search took 1.66 seconds.

  1. Replies
    10
    Views
    1,367

    Re: Need help deserializing an integer array.

    You get different results with that:

    Object anArray2 = java.lang.reflect.Array.newInstance(String.class, 4);
    System.out.println("aA2=" +anArray2); //aA2=[Ljava.lang.String;@12dacd1
    ...
  2. Replies
    10
    Views
    1,367

    Re: Need help deserializing an integer array.

    The new thing learned today:


    Object anArray = java.lang.reflect.Array.newInstance(Class.forName("java.lang.String"), new int[4]);
    System.out.println("aA=" +anArray); ...
  3. Replies
    10
    Views
    1,367

    Re: Need help deserializing an integer array.

    Not sure what you mean here. You imply that you don't know the number of dimensions until execution time.
    If you were able to create this array at execution time, how would your code use/access...
Results 1 to 3 of 3