?? testscannerlong.java
字號:
import java.util.*;
/**
* Description:
* <br/>Copyright (C), 2005-2008, Yeeku.H.Lee
* <br/>This program is protected by copyright laws.
* <br/>Program Name:
* <br/>Date:
* @author Yeeku.H.Lee kongyeeku@163.com
* @version 1.0
*/
public class TestScannerLong
{
public static void main(String[] args)
{
//System.in代表標準輸入,就是鍵盤輸入
Scanner sc = new Scanner(System.in);
//判斷是否還有下一個long整數
while(sc.hasNextLong())
{
//輸出輸入項
System.out.println("鍵盤輸入的內容是:" + sc.nextLong());
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -