Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
+nav
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
MCP (C# application dev 70-316) 860<br />SCJP 1.4 100% SCJD (URLyBird) 378<br />MAD 100% nuts
Originally posted by Inuka Vincit:
exact same code works for me it should
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by marc weber:
Update: Both pieces of code work with 1.4, but neither worked with 1.3.
Note: The UseBeforeDeclaration class above is from the Second Edition of the JLS (section 8.3.2.3). I couldn't find anything to parallel it in the First Edition.
JLS, 2nd Ed., Sect. 8.3.2.3: http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#287406
[ September 20, 2004: Message edited by: marc weber ]
MCP (C# application dev 70-316) 860<br />SCJP 1.4 100% SCJD (URLyBird) 378<br />MAD 100% nuts
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Regards,<br />Nandish
Regards,<br />Nandish
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |