Online College Courses for Credit

Scanner Class: Oddity Numbers before Strings (Java)

Scanner Class: Oddity Numbers before Strings (Java)

Author: Nathan Schutz
See More
Fast, Free College Credit

Developing Effective Teams

Let's Ride
*No strings attached. This college course is 100% free and is worth 1 semester credit.

29 Sophia partners guarantee credit transfer.

311 Institutions have accepted or given pre-approval for credit transfer.

* The American Council on Education's College Credit Recommendation Service (ACE Credit®) has evaluated and recommended college credit for 27 of Sophia’s online courses. Many different colleges and universities consider ACE CREDIT recommendations in determining the applicability to their course and degree programs.


This video looks at the issue of using nextInt() and nextDouble() before the method nextLine(). It explains the odd output and how to fix the issue within the Scanner Class.