This series of videos is suitable for programmers with minimal (or no) programming experience who want to learn Java. In this video, we will dig into the Scanner in Java. The Scanner can be a little tricky, but once you understand how the different methods work and how to avoid the pitfalls, it'll be easy!
There is a suggested (free) book below that you could read along with the videos lessons. However, the video is very straightforward and can also stand alone or accompany any other introductory Java textbook. Let's have some fun learning to program in Java!
PLAYLIST
• Introduction to Progra...
BOOK AND WEBSITE RESOURCES
This video is suitable to watch after reading Chapter 2 of Introduction to Programming Using Java, by David J. Eck:
math.hws.edu/eck/cs124/downlo...
The Elements of Java Style text is available here*:
amzn.to/4c2gn8H
*As an Amazon Associate I earn from qualifying purchases. Your purchases help me continue to bring you content!
Here is the Oracle page for the Scanner:
docs.oracle.com/javase/8/docs...
The Open JDK page is here:
jdk.java.net/
The Eclipse IDE page is here:
eclipseide.org/
PRACTICE
You can practice writing the StatsSheet program from the video here*:
codecheck.io/files/2403131339...
*The CodeCheck system courtesy of Cay Horstmann, horstmann.com/codecheck/
If you want to earn credit for learning to code, take an online course at CCRI! These videos are part of the Java Programming course:
ccri.edu/comp/
GET THE CODE
The github repository with all of the code examples for Lesson 2 is here:
github.com/ProfessorBurke/Jav...
RESOURCE ATTRIBUTIONS
Java JDK image from Oracle:
www.oracle.com/java/technolog...
Java coffee cup image:
By Mark Anderson (work for hire for Sun Microsystems) - www.logoeps.com/java-eps-vecto..., Fair use, en.wikipedia.org/w/index.php?...
Artoo the Barbarian images generated with Nightcafe and edited in Photoshop.
00:00 Welcome and overview of the last videos and this video
00:39 Writing a character stats program
05:55 The problem: Strings not read properly
07:00 How the Scanner works
10:33 Remedy: Always read Strings properly
11:46 Summary and review
Негізгі бет How the Scanner works to read console input in Java; Intro to Java (full course) Lesson 2 Video 4
Пікірлер: 2