Online College Courses for Credit

Scanner Class 3: Reading Text Files Part 6 (Java)

Scanner Class 3: Reading Text Files Part 6 (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.


Reading in a text file using the Scanner Class. It specifically looks at taking in a line of data as a String object and converting its parts into their respective primitive data types, doubles and ints. It shows the methods Double.parseDouble() and Integer.parseInt().