Join Todd Perkins for an in-depth discussion in this video Input and output, part of Learning Java Applications.
- The next item up for review is reading data to the console…and printing data out to the console.…Now, we've looked at printing data out to the console…quite a bit already.…So, we're mostly going to focus on…user input inside of the console…and using that inside of our applications.…So let's say our goal is to create a mini app…that just adds numbers together.…So, for example, we could start with…system.out.println…and we can ask the user to enter the first number.…
Now we want to capture number.…So what we do is create a scanner,…and this is one of multiple ways to capture user input,…but for now we're going to focus on just the scanner here.…So the scanner, we'll call this scan,…set it equal to a new instance of the scanner class,…and then we're going to pass in system.in…so we're grabbing that user input there.…Now, when we use scanner, we're seeing this error right here…and when you click on the error,…you see the error that's happening…because the scanner cannot be resolved to a type.…
So the suggestion is to import the scanner class.…
- Installing Java and Eclipse
- Understanding basic Java syntax
- Handling Java errors
- Creating a UI with Swing
- Creating tables and connecting to data sources for tables
- Publishing a JAR file
- Installing NetBeans
- Creating JSP pages
- Setting up and connecting to databases
- Creating Java-based Android Studio projects
Skill Level Beginner
1. Install Java and an IDE
2. Java Basics Review
3. Create a User Interface with Swing
4. Tables and Data Sources
5. Application Distribution and Deployment
Publish a runnable JAR file2m 32s
6. Server-Side Java: JSP and Databases
7. Android Development
Next steps1m 16s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.