?? input1.java
字號:
import java.io.*;
public class Input1
{
public static void main(String args[]) throws IOException
{
System.out.println("Input: ");
byte buffer[] = new byte[512]; //輸入緩沖區
int count = System.in.read(buffer); //讀取標準輸入流
System.out.println("Output: ");
for (int i=0;i<count;i++) //輸出buffer元素值
{
System.out.print(" "+buffer[i]);
}
System.out.println();
for (int i=0;i<count;i++) //按字符方式輸出buffer
{
System.out.print((char) buffer[i]);
}
System.out.println("count = "+ count); //buffer實際長度
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -