Browse Source

大小写转换,Java版

爱玲姐姐 5 years ago
parent
commit
5d8f2df48f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      J.java

+ 11 - 0
J.java

@@ -0,0 +1,11 @@
+import java.util.Scanner;
+ 
+public class Main {
+public static void main(String[] args) {
+    Scanner cin = new Scanner(System.in);
+    while(cin.hasNext()) {
+        String s = cin.nextLine().toUpperCase();
+        System.out.println(s);
+    }
+}
+}