posted 20 years ago
The preferred syntax for array variables is "String[] args", not "String args[]".The allocation of "new int [5]" and its assignment to variable array1 is pointless, since array1 is assigned to in the next line.The for loop assumes that the method is returning an array of length (at least?) 5. It's better to use the length atribute.
Fixing this yields:
There is no emoticon for what I am feeling!