Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
can either TreeSet OR HashSet contain null values ?
Joined: Nov 02, 2000
Dec 27, 2000 02:54:00
Joined: Nov 30, 2000
Dec 27, 2000 08:06:00
Yes. You can add(null) on both
Check your self from JDK and try writing some code before posting this kind of questions. But it's good to let the public know.
I agree. Here's the link:
subject: can either TreeSet OR HashSet contain null values ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014