public class Java00 { public static void main(String args[]) {int cd = 0, cs = 0;String s = "123214243535324324324234";char[] c = s.toCharArray();for (int i = 0; i < s.length(); i++) { String str = c + ""; int k = Integer.parseInt(str); if (k % 2 == 0) {
cd++; } else {
cs++; }}System.out.println("偶数=" + cd + " ; 奇数=" + cs); }};