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.
(digital chime)…- [Voiceover] Welcome back.…How did you make out with your challenge in BlueJ?…I hope you were successful,…and you were able to use this unique IDE.…I'd like to show you how I would approach this problem.…I'm going to start by creating a new project in BlueJ.…Project, New Project, and I'm gonna give it a name,…I'll call it Greetings, and click Create.…I'm gonna maximize the window.…Now, I need to add a new class,…and I'm gonna name this Greetings also.…
I'm gonna open Greetings in the code editor,…I'm going to change the author to have my name,…and I'm gonna put the date.…I don't need any instance variables,…so I'm gonna delete the instance variable…that gets created by the template program,…and I'm actually gonna go ahead…and delete the constructor as well.…The only thing I need is a main method,…so I'm going to delete this method, and add my own.…I can either type in public static void main,…or I can go to Edit, and say Insert Method.…
This time, I'm gonna type in my own method.…So I'm gonna type public static void main…
- 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?
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.