5 Replies Latest reply on May 3, 2007 4:41 PM by 807599

    getting length of int[] - need help

      hi i am making a paint program and one of the things i want it to do it to be able to draw a polygon from an int array of x points and y points.

      these arrays work fine but the constructor for a polygon needs the number of corners aswell and since the user decides this i cannot use a constant.

      the way i thought id do it is to get the number of points in one of the arrays but there doesnt seem to be a method for doing it!

      does anyone know how i can get the length of an int array? (not the capacity but the number of elements in it)