
Learn the fundamentals of the core Java 8 language and the object oriented programming paradigm, enabling you to build portable applications for web, mobile, and desktop platforms.
Explore Java 8 fundamentals through a hands-on airline reservation project, install Java and cross-platform tools, model data, test, log, and handle errors to build a deployable application.
Access your Java 8 course working files by downloading, extracting a zip, and placing them on the desktop. Open them via the player's open working files option.
Explain how Java version numbering evolved from 1.0 to Java 8, including J2SE, J2EE, J2ME, and the use of updates and renaming in the Java platform.
Discover how a Java program moves from a .java source file to cross-device bytecode that runs on any device with a Java virtual machine by compiling with the Java Sea.
Install the JDK on Windows and set up the development environment, then download and unzip Eclipse into program files. Configure java home and path, and create a desktop shortcut.
Install java development kit 8 on os x and set up eclipse to start developing java applications. Test the runtime and compiler with terminal commands to confirm java version 8.
Install java 8 and eclipse on linux, test runtime and compiler, then download, extract, and run eclipse from the home directory.
Set up Eclipse workspace and create a Java project named reservations, configure Java 8 runtime, and organize code into packages using the domain-reverse naming convention to support testing and packaging.
Create and run your first Java application by writing a class in the org.airline.reservations package, including a main method, and printing a line to the screen with Eclipse.
Learn how to write, compile, and run a Java class from a plain text editor, understand the main method, print a line, and compare manual steps with Eclipse's productivity.
Organize a Java application by defining classes as nouns, such as ticket, passenger, and flight, then build a simplified four-class design linking ticket, passenger, flight, and aircraft.
Explore Eclipse workspace organization and perspectives while creating a scrapbook page to run small Java snippets, and learn to write, select, and execute code in a dedicated practice area.
Explore how to define variables in Java, including primitive types like int, proper naming with camel case, and using semicolons and assignments to store data.
Declare and assign integers in Java using int, print with System.out.println, perform arithmetic, including truncation, and respect int's 32-bit and long's 64-bit range.
Learn how to declare and use floating point variables in Java, understand the difference between float and double, and recognize precision versus accuracy, including when to use BigDecimal.
Define boolean variables in Java using the boolean type with true or false, creating two-state fields like yes/no, and compare values such as bag weight greater than 50 for testing.
Define string variables in java by declaring the string type (a class, not primitive), assigning values in double quotes, and printing or concatenating them with plus to build full names.
Master date handling in Java 8 with the LocalDate class, learning to define dates, import java.time, and perform plusDays computations for due dates.
We decide which fields to store in each class on the diagram, using strings for names and cities, a local date for departure, and references to passenger, flight, and seat.
Create the passenger class inside a package, declare a public class named after the file, and define its code block, using Eclipse to generate boilerplate and enforce semicolons.
Declare and document class fields, like a passenger's name, using private access and the string type. Use line and block comments, plus file headers, to describe code and guide collaboration.
Learn to create a public constructor in Java 8 for a passenger class and understand how Eclipse aids development with syntax coloring and on-the-fly checks.
Create getter and setter methods for a passenger class to access and modify the name field, using public methods getName and setName, with name stored privately.
Create a passenger object from the passenger class and practice declaring, instantiating, and using it. Learn to resolve visibility by importing the package and making the class public.
Learn how to work with a passenger object by accessing its private fields through getters and setters, and why encapsulation uses private fields and validation in set methods.
Learn to create an automated unit test for the passenger class using JUnit in Eclipse, organizing tests in a separate source folder and package to enable regression testing.
Write JUnit test methods for a passenger class, create objects, verify the name via asserts, and interpret eclipse test results.
Write and verify unit tests for the passenger class by testing the get name and set name methods with a new passenger object, using assert equals to confirm results.
Learn how test driven development fits within agile methods like extreme programming and scrum, by writing tests before code and using them as the specification to drive minimal, well-documented code.
Using test driven development, create a flight class with flight number, departure and arrival cities, and a constructor with getters and setters, guided by a JUnit FlightTest that checks defaults.
Create a flight class that tests require, use Eclipse quick fixes to generate the class and default constructor, and declare private fields for departure city, arrival city, and flight number.
Continue building the flight class with test driven development, converting fields to private, accessing them via getters and setters, and using this to distinguish fields from parameters while refining tests.
Complete the flight class constructor to initialize the departure and rival cities to unknown and set the flight number to 100, validating changes with unit tests in a test-driven approach.
Finish writing unit tests for the flight class in Java 8 using test-driven development, validating set and get departure city, arrival city, and flight number with annotations.
Implement a seat class from a test-driven approach. Use the seat test class and quick fix, guided by flight or passenger tests, with a single integer field for seat number.
Learn to build a seat class using test-driven design, write JUnit tests, create a constructor, getter, and setter, and verify behavior with a default of 10.
Learn how to use and customize the toString method to produce human readable object representations for logging, dropdowns, and messages by overriding Object's default output in a subclass.
Create and run a test suite to execute multiple unit tests with one click, using JUnit’s suite classes to group tests and optionally perform setup and cleanup.
Explore how methods receive input via parameters and arguments, with attention to types, single and multiple parameters, and the method signature's role in Java.
Discover how Java methods return values by specifying return types, handling strings and void, and receiving results in calling code, with examples of type checking and single return statements.
Create multiple constructors in a class to initialize objects with or without parameters, using constructor overloading and the setName method for validation.
Create a ticket class that uses object field types—passenger, flight, and seat—linking to existing classes, set departure date with LocalDate.now, generate private fields with getters and setters.
Learn to create and link a ticket to a passenger using unit tests, and verify the passenger name via get passenger, practicing ticket set and get methods in Java 8.
Review data class structure in the explorer, use the flight class as an example, and apply separation of concerns by adding a second constructor, a toString method, and updated tests.
Learn to use array lists to store and access objects such as flights, passengers, seats, and tickets, with generics and wrapper types for primitives, enabling in-memory data storage and retrieval.
Create a database class to manage data objects using a service oriented architecture, store objects in in memory array lists, and drive development with unit tests and test driven development.
Apply test driven design to build a Java database class with four private array lists for seats, passengers, flights, and tickets, ensuring a zero-size constructor and getters through unit tests.
Create an empty string array list named names, import java.util, and use add to insert first and last names. Then verify the size shows two items.
Access specific elements in an array list with the get method and index value, returning Mike at 0 and Kelly at 1, while improving tests for size and seat numbers.
bootstrap the database by initializing six seats and four flights with a bootstrap method, invoked at startup and validated by array list sizes.
Learn to search an ArrayList for elements with indexOf and contains, returning the element's index or a boolean, and preparing to loop through custom objects.
Remove elements from an array list using the remove method by index and see how the list shrinks as remaining items shift up to fill gaps for flight booking.
Learn how the while loop repeats actions while a condition holds, starting outside the loop and ending when lives remaining reaches zero.
Explore how a for loop repeats code by initialization, termination condition, and increment in the opening parentheses, and compare it to a while loop.
Learn how the enhanced for loop iterates over a collection, such as an array list of passengers, and prints each passenger’s name via the get name method.
Explore how to use if statements to make decisions in Java 8 by evaluating boolean expressions, using else and else if, and mastering equality checks.
Compare values in Java 8 using operators like >, >=, <=, and != for primitives. Use equals for strings, since strings are objects and double equals compares memory locations.
Modify the addPassenger method to check for existing passengers with an enhanced for loop and an if condition, add to the database only if not found, and return a boolean.
Write and run tests for the addPassenger method to verify both branches of the conditional: adding a new passenger and detecting an existing one.
Implement the addTicket method in a Java 8 database by selecting passenger, flight, and seat from lists, constructing a ticket, and returning a summary string.
Implement the getOpenSeats method in Java 8 to return available seats for a flight on a given date by filtering a copy of all seats against booked tickets.
This Java 8 training course from Infinite Skills teaches you the tools and functions of the latest Java platform.
You will start by learning how to install the Java development kit, then move onto creating a project and package and writing and running your first Java class. This course then teaches you how to create a scrapbook page, define variables, work with integers and floating point variables, and document project fields. This video tutorial also covers using the passenger class, writing test methods and the flight class, passing data between objects, storing objects in ArrayLists, using the console for user input, and deploying your application. Finally, you will learn how to create and finish the subclass, read and write to a file, and add logging statements.
By the completion of this computer based training course, you will have gained the knowledge and skills necessary to create your own fully functional programs using Java 8. Working files are included, allowing you to follow along with the author throughout the lessons