import?java.io.IOException;
public?class?method2?{
????public?static?void?main(String[]?args)?throws?IOException?{
???? Integer?i?=?new?Integer(12);
???? String?s?=?i.toString();
???? String?str?=?s.intern();
???? byte?[]?b=str.getBytes();
???? byte[]?ab="12".getBytes();
???? for(int?k=0;k<b.length;k++){
???? System.out.print(b[k]+"?");
???? }
???? System.out.println();
???? for(int?k=0;k<ab.length;k++){
???? System.out.print(ab[k]+"?");
???? }
????}
??}//運(yùn)行結(jié)果怎么也不該是49?50?吧??基礎(chǔ)有點(diǎn)弱,萬萬沒想到。。
添加回答
舉報
0/150
提交
取消