Java???????????
???????????? ???????[ 2014/5/5 11:10:45 ] ????????Java ??? ????
package day13;
/*
???????????????????
byte Byte
short short
int Integer
long Long
boolean Boolean
float Float
double Double
char Character
????????????????????????????
???????????????????????????????????
??????????????????????
????????????+""
????????????.toString(?????????????);
?磺 Integer.toString(34);//??34???????"34";
????????????????????
xxx a = Xxx.parseXxx(String);
int a = Integer.parseInt("123");
double b = Double.parseDouble("12.23");
boolean b = Boolean.parseBoolean("true");
Integer i = new Integer("123");
int num = i.intValue();
?????????????????
toBinaryString();
toHexString();
toOctalString();
?????????????????
parseInt(string??radix);
*/
public class BasicDemo13 {
/**
*
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
method_1();
}
public static void method_1()
{
//?????????????
// sop(Integer.MAX_VALUE);
//???????????????????
// int num=Integer.parseInt("12345");
// sop(num);
// ????????????????
//sop(Integer.toBinaryString(-2));
//??????????????????
//sop(Integer.toHexString(10));
// ???????????????
//sop(Integer.toOctalString(1231));
// ????????????????????parseInt(string??radix);
// ??????????????????
//int i=Integer.parseInt("1111"?? 2);
//?????????????????
//int i=Integer.parseInt("1234"??8);
//sop(i);
}
public static void sop(Object obj)
{
System.out.println(obj);
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11