how does that work?It allows null value to be stored.
About Question enthuware.ocpjp.v7.2.1585 :
Moderator: admin
-
- Posts: 62
- Joined: Fri Aug 07, 2015 2:16 pm
- Contact:
About Question enthuware.ocpjp.v7.2.1585 :
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1585 :
Code: Select all
HashSet hs = new HashSet();
hs.add(null);
System.out.println(hs);
Code: Select all
[null]
Paul.
Who is online
Users browsing this forum: No registered users and 7 guests