看板 [ java ]
討論串[問題] 物件參照印出來的東西
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者adrianshum (Alien)時間14年前 (2011/10/03 23:39), 編輯資訊
0
0
2
內容預覽:
我想要加上 hashCode 的部份才完整:. http://www.docjar.com/docs/api/java/lang/Object.html#hashCode. s much as is reasonably practical, the hashCode method defined
(還有160個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者darkk6 (Mr. Pan)時間14年前 (2011/10/02 20:15), 編輯資訊
0
0
1
內容預覽:
請參考 Object.toString(). http://www.docjar.com/docs/api/java/lang/Object.html#toString. public String toString(). {. return getClass().getName() + "@" +

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者aoksc (重出江湖)時間14年前 (2011/10/02 19:08), 編輯資訊
0
0
0
內容預覽:
請問一下. 像這樣. xxx x=new xxx();. println(x);. 如果物件的參照印出像是xxx@c17164. xxx表示類別. c17164可以算是記憶體位址嗎?. 還只是個代表編號?. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 124.8.131.1
首頁
上一頁
1
下一頁
尾頁