單項選擇題

針對Set s接口,下列哪項是正確的?() 

A. s.add(2)
B. s.add(new Integer(2))
C. s.add(“2”)
D. s.add(new java.util.Date())

微信掃碼免費搜題