Re: [問題] 老師出的題目 (JAVA大一新手)
※ 引述《hs801922 (天氣好冷)》之銘言:
: 題目是:
: Description:
: Design a class, named ShowInteger, to output the integer 168 and -168 in
: decimal, binary, octal, and hexadecimal forms, respectively, by using the
: class method toString provided in java.lang.Integer class.
: Note:
: You have to check the API (Application Program Interface) of
: java.lang.Integer by using the J2SE online document.
: 好像是要用ShowInteger來做檔名對不對?
: 要從168~ -168隨機取出數字 是嗎?
: 可是之後我就不會做了..
: 不知道有哪位大人能幫忙解救ㄧ下@@"
以下是翻譯:(請善用google)
說明:
設計一個類別,命名為 ShowInteger,用來分別輸出整數 168 和 -168 的
十進制,二進制,八進制和十六進制形式,藉由使用這個
類別方法 toString 其提供自 java.lang.Integer 類別。
注意:
你必須查閱的API(應用程序介面)
java.lang.Integer 透過使用 J2SE 的線上文件。
--
" 愛 "是"喜歡"的累積!
"喜歡"是"感覺"的累積!
"感覺"是"緣份"的累積!
"緣份"是"前世"的累積!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.104.29.8
推
11/01 15:10, , 1F
11/01 15:10, 1F
推
11/02 00:42, , 2F
11/02 00:42, 2F
→
11/02 12:15, , 3F
11/02 12:15, 3F
→
11/04 11:38, , 4F
11/04 11:38, 4F
→
11/04 12:04, , 5F
11/04 12:04, 5F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):