パッケージ library.core.io
クラス MyScanner
java.lang.Object
library.core.io.MyScanner
- すべての実装されたインタフェース:
AutoCloseable
入力クラス
Scannerより速い
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明final voidclose()InputStreamを閉じるprotected final Stringline()[maybe_unused] 一行全部を入力するprotected final BigIntegernb()nextBigInteger 多倍長整数を入力するprotected final charnc()nextChar(Scannerにはない) char型を入力するprotected final doublend()nextDouble double型を入力するprotected final intni()nextInt int型を入力するprotected final longnl()nextLong long型を入力するprotected final Stringns()nextString(Scannerで云うnext) 文字列を入力するprotected final char[]nt()受け取った文字列をtoCharArrayにして返すprotected final FloatPairpf()FloatPair型を入力するprotected final IntPairpi()IntPair型を入力する
-
コンストラクタの詳細
-
MyScanner
コンストラクタ- パラメータ:
is- 標準入力(System.in)を入れる
-
-
メソッドの詳細
-
ni
protected final int ni()nextInt int型を入力する -
nl
protected final long nl()nextLong long型を入力する -
nd
protected final double nd()nextDouble double型を入力する -
nc
protected final char nc()nextChar(Scannerにはない) char型を入力する -
ns
nextString(Scannerで云うnext) 文字列を入力する -
nt
protected final char[] nt()受け取った文字列をtoCharArrayにして返す -
nb
nextBigInteger 多倍長整数を入力する -
pi
IntPair型を入力する- 関連項目:
-
pf
FloatPair型を入力する- 関連項目:
-
line
[maybe_unused] 一行全部を入力する -
close
public final void close()InputStreamを閉じる- 定義:
closeインタフェース内AutoCloseable
-