can either TreeSet OR HashSet contain null values ?
sarim raza
Ranch Hand
Joined: Nov 02, 2000
Posts: 232
posted
0
thanks
Sivaram Ghorakavi
Ranch Hand
Joined: Nov 30, 2000
Posts: 56
posted
0
Yes. You can add(null) on both TreeSet and HashSet. 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.