package com.fqs.demo; public class CharAB { //输出26个字母 public static void main(String[] args) { int end=97+26;//97是a;98是b for(int index=97;index<end;index++) { char zimu=(char)index;//强制转换int为char System.out.println("小写字母:"+zimu); } } }
标签:index,26,小写字母,98,int,97 From: https://www.cnblogs.com/haha1988/p/17062303.html