2024 iThome 鐵人賽
分享至
101 字串列印 import java.util.Scanner; public class JPA01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str1 = sc.nextLine(); String str2 = sc.nextLine(); System.out.print(str1+" "+str2); sc.close(); } }
101 字串列印
import java.util.Scanner; public class JPA01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str1 = sc.nextLine(); String str2 = sc.nextLine(); System.out.print(str1+" "+str2); sc.close(); } }
參考資料:TQC+ 物件導向程式語言 Java 17
IT邦幫忙