Java 正着输a-z,翻着输Z-A
作者:互联网
public class MyOwn {
public static void main(String[] args) {
char c1 = 'a';
for(; c1 <= 'a' + 25; c1++) {
System.out.print(c1);
}
System.out.println();
char c2 = 'Z';
for(; c2 >= 'A'; c2--) {
System.out.print(c2);
}
}
}
标签:Java,正着,System,char,翻着,c2,c1,public,out 来源: https://blog.csdn.net/eewangw/article/details/120167716