作者csihcs (非天夜翔)
看板java
標題Re: [問題] 老師出的題目 (JAVA大一新手)
時間Mon Nov 1 01:31:16 2010
※ 引述《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
推 abysmal:大家酸歸酸都還是有給些指引阿,JAVA版真溫馨 11/01 15:10
推 sorkayi:我也給指引 去CodeJob 有人會教你 :D 11/02 00:42
→ final01:有心學的話 這些提示就夠了 11/02 12:15
→ ILike58:這是google翻的嗎?看樣子還不錯說~ 11/04 11:38
→ csihcs:大多數是google翻的,我稍微做了修整。 11/04 12:04