TMD厌学

fuck! the way you have choosen,please not give up.i don't like this subject now!what fuck!

One .write the common Exception name!

1.NullPointerException

2.ArrayIndexOutOfBoundsException

3.ArithmeticException

4.RuntimeException

5.ClassCastException

second .write member method limited ways

public protected private final static abstract default

third, the ways transfrom int into String

String s = " " + 10

String s = new Integer(10).toString();

String s = Integer.toString(10);

String s = String.valueOf(10);

fourth,the ways transfrom String into Int

int i = Inerger.parseInt("10");

int i = new Integer("10");

猜你喜欢

转载自www.cnblogs.com/akinodoo/p/9931512.html
今日推荐