This is a sample solution to the challenge where you were asked to write a program that asks the user for their name, then uses the current time to determine if it is morning, afternoon or evening. Then print a message saying: Good Morning followed by the name the user entered or Good Afternoon or Good Evening.
- View Offline
- Exercise Files
(intro flourish)…- [Voiceover] Welcome back.…How did you make out with your challenge?…What do you think about the Eclipse IDE?…I think the Eclipse IDE is similar to the NetBeans IDE.…I'd like to take a moment to show you…how I would approach the challenge…that I presented to you in the last section.…We want to start by creating a new project.…I'll go to "File," "New," "Java Project."…I'll call it "Greeting," and I'm going to leave…the default values and click "Finish."…I need to open up the folder, and now inside the source file…I'm going to right click and say, "New," "Class."…I do want to point out that there are icons…in the toolbar right below the menu bar…that you can use to create a new class as well.…
I can click on the C with a plus sign right here…to create a new Java class.…I'm going to go ahead and name the class "Greeting" as well.…I'm going to leave it as public,…but I am going to add a stub for public static void main,…and click "Finish."…Okay, now I can start writing the code…that I need for my program.…
- 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.