代码如下:import java.io.IOException;public class App {public static void main(String[] args) throws IOException {char ch = (char)System.in.read();if (ch >= 'a' && ch <= 'z') {ch -= 32;}System.out.println(ch);}} ...
import java.util.Scanner;public class Main { public static void main(String[] args) { System.out.println("输入一个字符串:");String str = null;Scanner cin = new Scanner(System.in);while (cin.hasNext()) { str = cin.nextLine();break;} String newStr1 = "";String newStr2...
(2)小写字母有几个?分别是那几个? (3)将小写字母转换成大写字母,大写字母转换成小写字母。相关知识点: 试题来源: 解析 参考答案: public static void main(String[] args) { if(args[0] != "") { String inputString = args[0]; int countLower = 0; int countUpper = 0; String strLower = "...