返回列表 發帖
  1. import java.io.Console;
  2. import java.util.Scanner;
  3. public class ch40
  4. {
  5.     public static void main(String args[])
  6.     {
  7.         Scanner s=new Scanner(System.in);p
  8.         String a;
  9.         int b;
  10.         float c;
  11.         System.out.println("輸入一字串")
  12.         a=s.next();
  13.         System.out.println(a);
  14.         System.out.println("輸入一字串")
  15.         b=s.nextInt();
  16.         System.out.println(b);
  17.         System.out.println("輸入一字串")
  18.         c=s.nextFloat();
  19.         System.out.println(c);


  20.     }
  21. }
複製代碼

TOP

返回列表