作者TonyQ (骨头)
看板java
标题Re: 请问一下hashset问题
时间Sat Apr 14 20:33:12 2007
※ 引述《[email protected] (无言)》之铭言:
: 请问一下...底下set後面还有一个<String>这是什麽意思呢..
: 可以教导一下吗..
: 谢谢!!
: Set<String> set = new HashSet<String>();
1.5以後出现的 Generic type 特性,
意义是宣告这个SET里面只存放 String 型态的资料。
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the compiler will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.practice()); | Bone
everything
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.134.27.68