作者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
1F:推 abysmal:大家酸归酸都还是有给些指引阿,JAVA版真温馨 11/01 15:10
2F:推 sorkayi:我也给指引 去CodeJob 有人会教你 :D 11/02 00:42
3F:→ final01:有心学的话 这些提示就够了 11/02 12:15
4F:→ ILike58:这是google翻的吗?看样子还不错说~ 11/04 11:38
5F:→ csihcs:大多数是google翻的,我稍微做了修整。 11/04 12:04