Join Peggy Fisher for an in-depth discussion in this video Challenge: Hello world, part of Java Essential Training for Students.
- Let's look at our first challenge.…In this challenge you should use a text editor…to write a Java program.…I use brackets but Notepad++ or even Notepad…would work just fine.…The program should take in a string prompt as an argument.…Then it's going to print that back to the screen.…The prompt message should ask the user to enter their name…and their age.…Use the Scanner class to read in the name as a string…and the age as an integer.…Using this information, display the information back…to the console.…
Once your program is written make sure to save the program…to your myJava folder on the C: drive.…Don't forget to set your environment variables…before trying to compile the .java file.…Go ahead and compile it using the command line.…javac, space, your program name, .java.…And finally you can run it using the java command.…Run the program from the command line.…Don't forget to include your message after the program name.…I'm estimating that this will take you…about 10 minutes to do.…
So go ahead and give it a try.…
- Getting started with parsing
- Reviewing data types
- Using decisions
- Creating user-defined methods
- Command-line debugging
- Exploring the Java API
- Creating and instantiating classes
- Working with interfaces
- Storing items with arrays
Skill Level Intermediate
Q: How can I make my debugger function like the author’s?
1. Command Level Programming
2. Basics Review
4. Java API
5. Simulations and Algorithm Analysis
6. Classes and Objects
7. More on Classes
8. Data Structures
- 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.