当一句话中只有一部分是动态变化时,则可考虑使用String.format()。 ... System.out.println(str); System.out.printf("字母c的大写是:%c %n", 'C'); ...
確定! 回上一頁