posted 19 years ago
When you say it didn't work, how do you know? Did you receive compilation errors? The only thing I see wrong with the snippet you posted is a semicolon missing after the first line.
Other than that, my best guess is that you forgot to import java.util.*.
[ October 07, 2004: Message edited by: marc weber ]
"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