要使用Java.io.*套件
Example:
import java.io.*;
public class J2_4_2 {
public static void main (String[] args) throws IOException {
char ch;
System.out.print(“Please enter a letter: “);
ch = (char)System.in.read();
System.out.println(“The letter you enter is: " + ch);
}
}
Java 輸入字元
誰在線上
正在瀏覽這個版面的使用者:沒有註冊會員 和 4 位訪客