本帖最后由 ___________゛M 于 2014-2-19 15:50 编辑  
- <div class="blockcode"><blockquote>String str = "123456"
 
 - //由于字符串数字与Int数字的ascii码正好相差48.
 
 -                 for(int i = 0; i < str.length; i++)
 
 -                 {
 
 -                         int temp = str.charAt(i) - 48;
 
 -                         System.out.println(temp);
 
 - }
 
  复制代码 
 
 
这样就可以 了,   求个技术分 。。。。。 |