Course Code: njv
Now that you've done some Java programming, you may be wondering, "What's next?" In this first lesson, you'll get a taste of what you'll learn before the course is over. You'll first do a short review of the Java skills you should already have—this will get your wheels turning if you haven't worked with Java in a while! You'll also find out about a few different development environments you can use to create and run your own Java programs.
The array is one of the most commonly used data structures in any programming language. This lesson will go over how arrays work, including their internal structure. You'll find out how to create arrays, how to store and access data in them, and how to process them efficiently using loops. Along the way, you'll also learn the difference between a class that's a complete program and one that isn't. You'll see how to write classes that use other classes in their processing, which is helpful when you're working with a lot of information.
Computers can do an incredible amount of work, but it's often all for nothing if you can't save the results after the program finishes. That's where data files come into play. This lesson shows you how to read and write computer data files using Java. That process takes place many times every day in all kinds of programs, so it's a very useful and important one to understand.
Have you ever wondered exactly what the big deal is about object-oriented programming (OOP)? Why does is matter whether a language is object-oriented or not? In this lesson, you'll look at exactly what object orientation means to Java through the topic of inheritance. One of the primary features of an OOP language is how its classes inherit features from other classes in the class hierarchy. You'll find out how Java's class hierarchy is organized, and you'll learn how to use the different types of classes (interfaces, abstract classes, and concrete classes) to your advantage.
You'll explore Java's GUI tools in this lesson. Nearly every modern program has a graphical user interface, or GUI. That just means the program appears in a window with menus, icons, buttons, and so on. Java has hundreds of GUI tools that you can use to build your own applications to run in any windowed operating system that supports Java (Windows, Linux, and Mac OS X, among others). You'll learn how to set up a standalone application using Java's GUI tools, including labels, buttons, dialogs, and more.
In this lesson, you'll continue learning about Java's GUI capabilities. You'll explore several ways that Java can organize multiple GUI components in a window and find out how to split windows into smaller areas called panels, which you can then organize in different ways. You'll see how to set up Java's scroll bars in a window or part of a window so that users can scroll up, down, left, and right through the display.
What do almost all modern-day programs have in common? They have menus. Menus are probably the best-known and most widely used GUI programming feature. In this lesson, you'll learn how to create menus using Java's menu bar, menu, and menu item components. You'll be able to create as many menus in an application as you need, each with all the menu items and submenus necessary to perform the task you're programming.
By this time, you'll have spent three lessons learning about different Java GUI programming techniques and tools. In this lesson, you'll learn how to put the pieces together into a complete, reasonably complex Java application. You'll see how to combine menu options, graphics, check boxes, radio buttons, and text entry fields into a windowed program that can actually perform a useful task: It allows someone to order a pizza! (How much more useful can it get?)
In this lesson, you'll take what you started in Lesson 8, where you learned how to design and build a GUI interface to order a pizza, and you'll make it functional. You already have all the GUI components displayed nicely in the window, so now you'll learn how to make your program gather all the data from the different components in the window, and then put that information together into a useful pizza order. (Unfortunately, it won't actually deliver the pizza, though.) You'll get an idea of what you can create with Java's GUI capabilities.
Most programmers don't write computer programs to deal with individual data items. Usually, they write programs to deal with groups of items. In this lesson, you'll learn all about Java's collection classes, a group of data structures designed to work with many items at once. You'll discover the difference between lists, queues, sets, maps, and other types of collections. You'll explore how to work with a list to load a group of items from a file into a list, and how to display items from the list in a GUI window. Along the way, you'll learn another useful technique in GUI programming: how to use Java's file chooser dialog to select a file to open and process.
To explore more of Java's collections, you'll continue working on the program you began in Lesson 10. You'll find out how to navigate through a list (forward and backward), displaying each list item as you go. You'll also see how to set up a window with multiple display formats, and switch between them by clicking tabs that describe the different views. You'll also learn how to create items that Java can compare, even if Java doesn't know the details of what is in the items. You'll use that capability to build a list and sort its items in a specified sequence. That's a very useful and important capability when you're dealing with large numbers of items.
In the last lesson, you'll delve even deeper into the topic of collections. (You can see that it's a large and important subject!) You'll find out how to use maps, which are Java collections that let you store and retrieve data items quickly based on a unique data element of each item (its key). Think of looking up a telephone number in a large telephone book like New York City's. Finding a single number would be impossible if the data weren't properly organized. You'll see how to use the same type of search to quickly find any data item you need in a collection. And while you're doing that, you'll also learn a bit more about Java's other features, including Java's wrapper class, which is one more important data feature of the Java language that you'll use quite often. By the end of this lesson, you'll be amazed at what you're able to do with Java!
Alan Simpson is an award-winning author, having published over 100 books on computers and the Internet. His books have been published in over a dozen language worldwide. He has covered virtually all aspects of the computer industry, including web development, operating systems, programming, networking, and security. As a seasoned veteran of the computer industry, he is widely regarded as a computer and Internet guru.
Completion of Introduction to Java Programming (or equivalent experience).
The instructional materials required for this course are included in enrollment and will be available online.
Instructor-Led: A new session of each course begins each month. Please refer to the session start dates for scheduling.
Self-Paced: You can start this course at any time your schedule permits.
Instructor-Led: Once a session starts, two lessons will be released each week, for the 6 week duration of your course. You will have access to all previously released lessons until the course ends.
Self-Paced: You have three-month access to the course. After enrolling, you can learn and complete the course at your own pace, within the allotted access period.
Instructor-Led: The interactive discussion area for each lesson automatically closes 2 weeks after each lesson is released, so you're encouraged to complete each lesson within two weeks of its release.
Self-Paced: There is no time limit to complete each lesson, other than completing all lessons before your three-month access expires.
Instructor-Led: The Final Exam will be released on the same day as the last lesson. Once the Final Exam has been released, you will have 2 weeks plus 10 days to complete the Final and finish any remaining lessons in your course. No further extensions can be provided beyond these 10 days.
Self-Paced: Because this course is self-paced, no extensions will be granted after the start of your enrollment.
The writing style in this course was excellent. It flowed well and was very easy to understand. There was just enough information given...well done."
I felt that the lessons were well written and well organized. The instructor had the ability to break a concept down to a level that could be understood by anyone. His explanations were clear and detailed…I'm so glad that this teacher exists, for it is very rare to find a computer science teacher like this one."
Great way to get introduced to Java! Merill does a great job of answering everyone's questions, which is important."
Excellent course and the knowledge that I have acquired from the course will really benefit me on future projects that I will be developing. The instructor is excellent!"
I really enjoyed this class. Since I have an unusual schedule, this style of learning is very good for me. I would take another class in this same subject matter if it was offered. This is the second class I have taken with the same instructor and he always responds to my questions."