This challenge is designed to give you practice with the NetBeans IDE. Your challenge is to create a simple Java program, use shortcuts to import necessary libraries, run the program and finally use the debugger to step through the code. I estimate that this challenge might take about 10 minutes. This gives you time to write your program, run it and then use the debugger.
(susurrating music)…- [Voiceover] Are you ready for your first challenge?…I really hope so.…This challenge is designed to give you practice…with the NetBeans IDE.…Your challenge is to create a simple Java program,…use shortcuts to import necessary libraries,…run the program,…and use the debugger to step through the code.…Here are some details about the program.…Create a Java application, and provide a meaningful name.…In the main method, add a Scanner object.…
The program should ask the user for their name.…Read the name into a string variable.…Then, using the current time to determine if it's morning,…afternoon, or evening, then print a message saying,…"Good morning," followed by the name the user entered,…or "Good afternoon," or "Good evening."…You can choose your own cutoff settings,…but maybe if it's before 11am, say "Good morning."…If it's after 11 but before 3pm, say "Good afternoon."…And if it's after 3pm, say "Good evening."…I'm including a code snippet here,…to help you obtain the current hour.…
I'm adding this here,…
- What is an IDE?
- Viewing and organizing files in an IDE
- Downloading and installing different IDEs
- Coding with shortcuts and autocompletion
- Using templates
- Finding and referencing files
- Debugging Java code in an IDE
Skill Level Beginner
1. A Quick Review of IDE Basics
2. NetBeans IDE
- 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.