62,614
社区成员
发帖
与我相关
我的任务
分享
public class Test {
public static void main(String[] args) throws Exception {
Float f = new Float(123.456f);
String s = f.toString();
byte[] b = s.getBytes();
for (byte by : b) {
System.out.println(by);
}
}
}
package test;
public class Test {
public static void main(String[] args) throws Exception {
Float f = new Float(123.456f);
byte bt = f.byteValue();
System.out.println(bt);
}
}