Java字符串是一系列的Unicode字符序列,但是,它却常常被误认为是char序列。于是,我们经常这样来遍历字符串:
package testchar;
public class TestChar2 {?public static void main(String[] args) {? String s = "A?東? ?