I was updating a legacy code base in Java and I found a line like this:
Object arg[] = { new Integer(20), new Integer(22) };
That line catc
No, they both work. But watch out:
float anArrayOfFloats[], aSecondVariable;
will declare one array of floats and one float, while:
float[] anArrayOfFloats, aSecondVariable;
will declare two arrays of floats.