コツコツ学習ブログ

プログラマのweb上のメモ的なもの

Java Scannerクラスのnext()とnextLine()の違い

next()は、空白までの文字を認識する。 nextLine()は、改行までの文字を認識する。