see if you can figure out this 'anomaly'
Please download, compile, and run the two attachments. Tell me if you can explain this 'anomaly'.
I post this more as a curiocity than a need to solve a problem (the second attachment, judging by the title, would suggest I've found a solution). It makes me wonder what the java run-time environment (or maybe the compiler) is doing in this case. Regardless of the fact that there's a simple way to remedy it, it seems to me (in my limited state of Java expertise) that there really shouldn't be an error to begin with.