|
发表于 2006-6-4 16:43:18
|
显示全部楼层
- package com.wapice.sh;
- public class Test {
- public static void main(String[] args) {
- String test1 = "abcdefg";
- char[] charArray = test1.toCharArray();
- StringBuilder sb = new StringBuilder();
- for (char currChar : charArray) {
- sb.append((char) (currChar - 10));
- }
- String test = sb.toString();
- }
- }
复制代码 |
|