美文网首页
System.out.println("键盘上第一排的字母键有"

System.out.println("键盘上第一排的字母键有"

作者: 哈迪斯Java | 来源:发表于2023-06-28 22:04 被阅读0次

public class Keys {
public static void main(String[] args) {
char[] firstRow = {'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'};
char[] secondRow = {'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'};
char[] thirdRow = {'Z', 'X', 'C', 'V', 'B', 'N', 'M'};
System.out.println("键盘上第一排的字母键有" + firstRow.length + "个;");
System.out.println("键盘上第二排的字母键有" + secondRow.length + "个;");
System.out.println("键盘上第三排的字母键有" + thirdRow.length + "个。");
}
}

相关文章

网友评论

      本文标题:System.out.println("键盘上第一排的字母键有"

      本文链接:https://www.haomeiwen.com/subject/ygphddtx.html