Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    8,887

    Re: Expanding the capacity of an array

    Ahh... I was only paying attention to compile errors :P

    Yeah, you're casting an Object array into a different kind of array (a no-no).

    Unfortunately, there's no way to create a generic array in...
  2. Replies
    5
    Views
    8,887

    Re: Expanding the capacity of an array

    What is the type of myCharFreqNode?

    Generics can't parametrize java primitive values, you must use the wrapper class.


    int[] primitive = new int[5];
    Integer[] wrapper = new Integer[5];...
Results 1 to 2 of 2