Re: 請問一下hashset問題

看板java作者 (骨頭)時間19年前 (2007/04/14 20:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《johnkuokuo@kkcity.com.tw (無言)》之銘言: :   請問一下...底下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
文章代碼(AID): #168CeAlQ (java)
討論串 (同標題文章)
文章代碼(AID): #168CeAlQ (java)