Does anyone here know any syntax in Java that will add a double(number type) to the next vacant slot in an array, after the user enters the number. Also, does anyone know how to trim an array to the size of stuff in it.
Any help would be appreciated.