Hey guys,
This is my first post at the ranch, so please forgive me if i screw up something.
I'm using the amazing Sun Certified Programmer for
Java 6 Study Guide to teach Java to Brazilian Programmers.
Quick question: At Chapter 3, Question 3 (pg 270 in the hard cover release), we see the following code:
There is a comma at the end of {1,2,}, this compiles fine with Java 6.
My not that smart question is if this comma does anything special or is it just something like the ";" after a enum declaration? And is it a bug at Java Implementation keepen in order to mantain compatibility or is it a "feature"? If noone can answer the second one it is ok.
Cheers