-
Applets – Creating a Simple Hello Applet! Applet
Java applets; built in the NetBeans IDE; allow you to create programs executed from a Web server through a Web browser. In this video; Mike McMillan demonstrates how to create a new project; a Java class library; and an applet file before defining the applet class in the Source editor.
-
Applets – Creating a Simple Swing Applet
The NetBeans IDE allows you to build Java applets containing Swing controls that provide a rich user interface for Web applications. In this video; Mike McMillan demonstrates how to create a JApplet Form; which he populates with controls from the Palette and Properties windows in the GUI Builder's Design view.
-
Calendar API – Working with Dates
Java's Calendar API offers you a set of methods for working efficiently and effectively with dates. In this video; Mike McMillan uses the Calendar API to create; format; and compare Date objects using the getInstance; set; and before and after methods.
-
Calendar API – Working with Time
Java's Calendar API offers you a set of methods for working efficiently and effectively with time. In this video; Mike McMillan uses the Calendar API to create; format; and compare time objects using the getInstance; set; and before and after methods.
-
Classes – Autogenerating Constructor Definitions
In Java; you can automatically generate definitions for constructors to save time while developing your code. In this video; Mike McMillan demonstrates how to automatically create a fully parameterized constructor; a default constructor; and a constructor that includes both defined parameters and default values.
-
Classes – Autogenerating HashCode() and Equals()
There are a number of methods in Java that can be autogenerated. In this video; Mike McMillan demonstrates how to generate the hashCode() and equals() methods automatically without the need for programming assistance.
-
Classes – Creating a Serializable Class
Java serialization; which enables object persistence; allows you to save class data to a file. In this video; Mike McMillan demonstrates how to create a new class and makes it serializable by importing and implementing the java.io.Serializable interface.
-
Classes – Creating Constructors – Default and Partial Constructors
Java allows you to create default class constructors that initialize fields to the default data for their types; thereby covering all that class's instantiation possibilities. In this video; Mike McMillan creates a default constructor containing no arguments or parameters beneath a fully-paramaterized constructor; and sets its fields to their default values.
-
Classes – Creating Constructors – Fully Parameterized Constructors
`In Java; a class definition needs to include at least one constructor which it uses to properly instantiate an object. In this video; Mike McMillan demonstrates how to create a fully parameterized constructor where each parameter is mapped to one of the fields in the class definition so it can initialize all the fields contained within the class.
-
Classes – Creating Fields
In Java; the data in a class is called a field. Fields; like all variables; must be declared before they're used. In this video; Mike McMillan demonstrates how to declare a new class; how to define three fields for the class; and how to assign data to the fields and display them to the console.
-
Classes – Creating Methods
For a date class in Java; an increment method will change the date object from the current day to the next day. In this video; Mike McMillan demonstrates how to create and use an increment method to change the date in your program.
-
Classes – Default and Partial Constructors
A default constructor in Java is a constructor that initializes fields to the default data for their types. In this video; Mike McMillan demonstrates how to create a default constructor where each field is set to a default value.
-
Classes – Fully Parameterized Constructors
A fully-parameterized constructor in Java is a constructor that initializes all the fields of the class. In this video; Mike McMillan demonstrates how to create a fully parameterized constructor where each parameter is mapped or corresponds to one of the fields in the class definition.
-
Classes – Implementing the equals() Method
An equals method can be created and used in Java to compare different objects. In this video; Mike McMillan demonstrates how to create and use an equals method to determine whether or not two dates are the same.
-
Classes – Reading a Serialized Object
In Java; once class data has been written to a file; the data needs to be accessible so it can be retrieved at a later date and read from the file back into a program. In this video; Mike McMillan demonstrates how to deserialize data so you can access all the methods and members of a class previously written to a file.
-
Classes – The toString() Method
The toString method in Java is used to display the current state of an object. In this video; Mike McMillan demonstrates how to create and use the toString method to display the state of a specific object.
-
Classes – Write a Serialized Object to Disk
In Java; once a class is serializable you can write the object to any output stream; such as a disk; and restore the data at a later time with relatively little effort. In this video; Mike McMillan highlights the code that is required to create an output object and write class data to a disk.
-
Collection API – ArrayLists Introduced
ArrayLists are one of the most useful data structures in Java. They support dynamic arrays that can grow; allowing you to easily add and remove elements as needed; regardless of position; and automatically increasing and decreasing in size. In this video; Mike McMillan demonstrates how to declare and initialize an ArrayList before adding and retrieving elements from it.
-
Collection API – Converting ArrayList to Array
In Java; there are situations when converting from an ArrayList to an array is a more efficient option; such as when you are performing calculations on an ArrayList containing a lot of numbers. In this video; Mike McMillan uses the toArray method to convert an ArrayList of integers into an array containing all of the elements in proper sequence.
-
Collection API – Removing Items from ArrayList
In Java; one of the useful features of an ArrayList is the ability to easily remove items from the list regardless of its position and have the ArrayList dynamically resize and avoid any resulting gaps. In this video; Mike McMillan creates an ArrayList of names before using the remove method to remove an item from the list.
-
Collection API – Reverse; Min and Max Algorithms
In Java; you can reverse data in a collection and find the maximum and minimum values. In this video; Mike McMillan uses algorithms from the Java collections library to reverse numbers and find the maximum and minimum numbers.
-
Collection API – Sorting Data
In Java; you can quickly generate and sort any type of data. In this video; Mike McMillan uses the sort algorithm from the Java collections library to sort a list of random numbers.
-
Collection API – Using an Iterator
In Java; collection classes allow you to use iterators to cycle through a collection; obtaining or removing elements. In this video; Mike McMillan demonstrates how to create an ArrayList; use an iterator; and set up a loop to traverse a collection of data.
-
Collection API – Using the HashMap Class
The Java Collection API allows you to use the HashMap class to store and retrieve key/value pairs. In this video; Mike McMillan demonstrates the uses of in-memory associative structures; imports the HashMap library; and creates a HashMap storing data as key/value pairs which he retrieves and alters using the get and remove methods.
-
Collection API – Using the TreeMap Class
In Java; you can store data structured as key-value pairs. In this video; Mike McMillan uses the TreeMap class to build a very simple phonebook that stores key-value pairs of data.
-
Collection API – Using the TreeSet Class
In Java; the TreeSet collection class provides an implementation of the Set interface that uses a tree structure to store objects in sorted; ascending order; allowing for fast access and retrieval times. In this video; Mike McMillan demonstrates how to implement the TreeSet class and use the subset() method to retrieve a range of values from the set.
-
Compiling Packages with Command Line
Java allows your programs to become a part of the larger Java organizational structure. In this video; Mark Lassoff demonstrates how to build and execute packages from the command line.
-
Contexts and Dependency Injection – Retrieving a Message From the Managed Bean
In Java; the Expression Language can be used to retrieve a message from a managed Bean. In this video; Mike McMillan demonstrates how to retrieve a message from a managed Bean using the Expression Language to modify the contents of the index.xhtml page.
-
Contexts and Dependency Injection – Setting Up a Project and a Bean
Using Contexts and Dependency Injection in Java; you can create managed Beans that could be injected into many different applications in a loosely coupled way. In this video; Mike McMillan demonstrates how to set up a new project and create a bean that can be injected into different applications.
-
Contexts and Dependency Injection – Upgrading a Managed Bean to an Enterprise Bean
In the Java Development Environment; you can upgrade a managed bean into an Enterprise Java bean by adding one of two annotations. In this video; Mike McMillan demonstrates how to import the java.ejb.Stateless and Stateful modules before adding the @Stateless or @Stateful annotations after the managed bean's @Named annotation.
-
Creating a Custom Class
Custom classes in Java allow you to model real-life objects. In this video; Mark Lassoff demonstrates how to write a custom class to model a vehicle.
-
Creating an API – Creating a Class Library Project
In Java; when creating an API; the first step is to create a Java Class Library (JCL) that will allow a class to exist outside of the main project. In this video; Mike McMillan demonstrates how to create a class defined as a JCL and provide the functionality to enable the library to be utilized in other projects.
-
Creating an API – Creating a Static Class
Static classes in Java are created when you want a programmer to have access to a set of methods that don't actually require a class instance. In this video; Mike McMillan demonstrates how to build a static class library that can be imported into other projects.
-
Creating an API – Importing a Class Library
When creating an API in Java; once a Java Class Library has been created you can import the class library easily into other programs providing access to a set of useful facilities. In this video; Mike McMillan demonstrates how to create a new NetBeans project; import a Java Class Library; and use it to create an object.
-
Server Pages – Creating the Web App and a Class
In Java; you can create a JavaServer pages application by creating an application shell in a Java class to handle that data.
-
Creating an API – Using Static Class Methods
While creating a Java API; you can import static class libraries into your projects and use the static class methods to define constants and take data from the parameters to make calculations without referencing variables. In this video; Mike McMillan demonstrates how to use a Java Class Library that contains only static class methods in a new NetBeans project.
-
Creating an Interface
Creating an interface in Java allows you to consume and utilize the actual methods of a class. In this video; Mark Lassoff demonstrates how to create a contract between two classes for a class to take on a specific role.
-
Creating and Compiling with the Command Line
Java allows you to compile code from the command line. In this video; Mark Lassoff demonstrates how to write simple Java code and compile and execute from the command line.
-
Custom Annotations – Setting Up a Project and Enabling Project Lombok
Java's NetBeans IDE enables you to set up a project using the Project Lombok custom annotation processor. In this video; Mike McMillan downloads the Project Lombok JAR file; imports it into a project and; enables its annotation processing capabilities.
-
Custom Annotations – Using Project Lombok to Generate Code
Java's NetBeans IDE enables you to generate boilerplate code using the Project Lombok custom annotation processor. In this video; Mike McMillan uses the Project Lombok custom annotation processor to automatically generate constructors; methods; getters and setters for a declared class.
-
Database Programming – Configuring MySQL Server Properties
The Java NetBeans IDE allows you to perform all the common database administration tasks associated with configuring MySQL Server properties. In this video; Mike McMillan demonstrates how to register a MySQL Server installation and configure the Basic and Admin properties in the MySQL Server Properties dialog box from the Services tab of the My NetBeans page.
-
Database Programming – Creating a Database and Table
The Java NetBeans IDE allows you to create a MySQL database and one or more tables from the NetBeans Services tab. In this video; Mike McMillan demonstrates how to create and configure a database using the Create MySQL Database Wizard; and create and populate a table with Variable Character (varchar) fields using the create table command in the Source editor.
-
Database Programming – Inserting and Viewing Rows
The NetBeans IDE allows you to enter data into the rows of a MySQL database table graphically or using standard SQL statements. In this video; Mike McMillan demonstrates how to access an existing table from the NetBeans IDE's Services tab; enter data using the insert command in the Source editor; then display the table in the Output window.
-
Database Programming – Updating and Deleting Rows
In Java; common database administration tasks; such as updating and deleting rows; can be performed graphically or by using SQL statements. In this video; Mike McMillan demonstrates how you can modify a table or delete rows of data using NetBeans.
-
DB Programming CRUD Project – Generating Entity Classes and Web Services
Java's NetBeans IDE enables you to generate Entity classes mapping your application to your database and its necessary Web Services; automatically. In this video; Mike McMillan uses the New RESTful Web Services from Database Wizard to create and connect both the Entity classes and RESTful Web Services.
-
DB Programming CRUD Project – Setting Up and Building Entity Class
In Java; you need to build an entity class for your database application with a GUI. In this video; Mike McMillan demonstrates how to use the Entity Classes from Database option to build an entity class.
-
DB Programming CRUD Project – Wrapping Entity Class in Module
Java's NetBeans IDE enables you to wrap a newly-created Entity class in a module so that you can use it in a database application. In this video; Mike McMillan uses the NetBeans IDE's New Library Wrapper Module Project Wizard to wrap an Entity class JAR file in a module.
-
DB Programming CRUD Project – Wrapping Supporting Jars in Modules
Java's NetBeans IDE enables you to wrap its required supporting Java Archives (JARs) in modules for use by your database application. In this video; Mike McMillan uses the NetBeans IDE's New Library Wrapper Module Project Wizard to wrap supporting Eclipse JAR files and the MySQL client JAR into modules.
-
Declaring Primitive Variables
Java allows you to declare and initialize primitive variables. In this video; Mark Lassoff demonstrates how to do simple arithmetic using primitive variables.
-
Exceptions – Finally Block
In Java; the finally block always executes when the try block exits; even when there is an unexpected exception. In this video; Mike McMillan demonstrates how you can finish up your exception handling tasks by using a finally block to clean up code.
-
Exceptions – Handling Multiple Exceptions
In Java; there are many ways in which a complicated program could crash. While you can handle some exceptions with one catch block; it's more effective if you try to account for all possible exceptions. In this video; Mike McMillan demonstrates how you can write multiple catch blocks to handle multiple possible exceptions.
-
Exceptions – Handling Simple Exceptions
Exception handling in Java helps you manage errors and determine how they should be handled to ensure better functioning of the systems you create. In this video; Mike McMillan demonstrates examples of simple program errors and explains how to handle them with Exceptions.
-
Field Access Control
Helper methods in Java are methods that are used in conjunction with other methods in the class definition; but are not part of the public interface of a class. In this video; Mike McMillan demonstrates how to create and use the helper method to manage the values of fields.
-
File API – Getting Directory Info
In Java; the File API can be used to get information about a directory allowing you to easily display a directory list or files located in a specific directory. In this video; Mike McMillan demonstrates how to associate a directory with a file object and display an array containing the directory information.
-
File API – Getting File Info
In Java; the File API can be used to retrieve file information by calling methods that allow you to display attributes for a particular file such as size; its path; and whether it's writable. In this video; Mike McMillan demonstrates how to associate a file object with a physical file; and how to retrieve and display the file's information.
-
File API – Reading a Text File
In Java; the File API has a set of methods for connecting a Java program to a text file; allowing you to read the file data into a variable before displaying the output. In this video; Mike McMillan demonstrates how to associate a text file with a BufferedReader object; read its contents; and display it.
-
File API – Writing a Text File
In Java; the File API has a set of methods that allow you to write data to a new or existing file on your hard drive using minimal lines of code. In this video; Mike McMillan demonstrates how to create a new text file and associate it with a BufferedReader object; then write content to it from a text variable.
-
Final Variables
Java allows developers to declare final fields – known as constants in other languages – when you need variables that will not change throughout the lifetime of a program. In this video; Mike McMillan demonstrates how to declare final fields and shows how these fields can't be changed once declared.
-
Generics – Defining a Generic Class
In Java; as with generic methods; generic classes are used to declare one or more type parameters providing a greater flexibility than classes whose data types are fixed at compile time. In this video; Mike McMillan demonstrates how to define a generic class and instantiate class objects.
-
Generics – Defining a Generic Interface
In Java; the Generic type is used for the return types of methods and for parameters. In this video; Mike McMillan demonstrates how to create a Generic interface and build a class that implements it.
-
Generics – Defining a Generic Method
In Java; generic methods allow you to specify; with a single declaration; a flexible solution whereby both the return and parameter types are defined at runtime rather than compile time. In this video; Mike McMillan demonstrates how to define a generic method for sorting an array of objects; then invokes the generic method with Integer and String arrays.
-
Generics – Using a Generic Interface
After a Generic interface has been created in Java; and the class is implemented using the interface; the interface should be tested. In this video; Mike McMillan demonstrates how to properly test a Generic interface using a simple program.
-
Getter Methods
Java allows developers to preserve the data-hiding feature of Object Oriented Programming by using getter methods to retrieve values from private fields. In this video; Mike McMillan demonstrates how to write getter methods and display the values they retrieve.
-
GlassFish Server Application Client – Creating a Class Library and the Enterprise App
Creating a Java Class Library that provides a remote interface is important to create an EJB Enterprise application. In this video; Mike McMillan explains how to create a Java Class Library using NetBeans.
-
GlassFish Server Application Client – Creating a Session Bean
In Java; you can create a Session Bean in a remote interface. In this video; Mike McMillan discusses how to create and use a Session Bean in a remote interface.
-
Graphics API – Drawing a Grid Programmatically
The Graphics API in Java allows you to create and use various built-in shapes. However; you can also create a custom shape programmatically. In this video; Mike McMillan demonstrates how to draw a grid using methods found in the Graphics API.
-
Graphics API – Drawing a Line
The Graphics API in Java allows you to create and use various built-in shapes. However; you can also create a custom shape programmatically. In this video; Mike McMillan demonstrates how to draw a line using methods found in the Graphics API.
-
Graphics API – Drawing Shapes
In Java; you can use the graphics API to draw a variety of different shapes. In this video; Mike McMillan uses the graphics 2D library to draw a rectangle; an oval; and an arc.
-
Graphics API – Working with Color
In Java; you can change the outline and fill the area of a shape with any color. In this video; Mike McMillan uses the setColor method to define the colors of a rectangle; an oval; and an arc.
-
GUI Development – Adding a Button Group
Java allows developers to create radio buttons on a GUI form using a Button Group. In this video; Mike McMillan demonstrates how to add a Button Group to a form; assign each radio button to the group; and test the functionality of the radio buttons.
-
GUI Development – Adding a Button to a Subcontainer
In Java; when developing a form in a GridBagLayout; you can edit the layout of an existing subcontainer by adding GUI components such as buttons. In this video; Mike McMillan demonstrates how to switch from the main container to a subcontainer in the Grid Area before adding a button to the subcontainer in a GridBagLayout using the GridBag Customizer.
-
GUI Development – Adding a Combo Box
Java allows developers to create a drop-down list on a GUI form using a Combo Box. This can be done at design time or programmatically at runtime. In this video; Mike McMillan demonstrates how to add a Combo Box to a form and specify a list of values at design time.
-
GUI Development – Adding a File Chooser to an Application
Java enables developers to add File Chooser functionality to a GUI application. In this video; Mike McMillan demonstrates how to bind an event to a button; add a File Chooser component to the button; and write the code for the File Chooser.
-
GUI Development – Adding a Label and a Text Field
Java allows developers to add a label with a blank text field for user input on a GUI form. In this video; Mike McMillan demonstrates how to insert a Text Field next to a Label; align it; change its properties; and clear it for user input.
-
GUI Development – Adding a Menu Bar and Menu Items
Java enables developers to add a menu bar with menu items and accelerators to a GUI application. In this video; Mike McMillan demonstrates how to add a menu bar to an application; add menu items and a separator to the menu bar; and add accelerator keys to each menu item.
-
GUI Development – Adding a Panel
Java allows developers to group related controls on a GUI form using the Panel feature. In this video; Mike McMillan demonstrates how to add a simple panel; size it; move it; and add a border from a list of predesigned border. He also demonstrates how to change the border to suit requirements.
-
GUI Development – Adding a Row to a GridBag Layout
The NetBeans GridBag Customizer allows you to easily add rows and change the existing layout of a Java form when developing your GUI in a GridBagLayout. In this video; Mike McMillan demonstrates how to insert a new row into a form and add new components and constraints to the new row using the GridBag Customizer.
-
GUI Development – Adding a Tool Bar to a Form
Java enables developers to add a toolbar to a form in a GUI application. In this video; Mike McMillan demonstrates how to add a toolbar to a form as well as toolbar buttons.
-
GUI Development – Adding an Icon and Tool Tip Text to a Toolbar Item
Java enables developers to use icons and tooltips instead of text for buttons on a toolbar. In this video; Mike McMillan demonstrates how to add a suitable icon to a button on a toolbar; and provide a tooltip to indicate the function of the button.
-
GUI Development – Adding an Image to a Form
Java enables developers to add an image to a GUI form. In this video; Mike McMillan demonstrates how to create a new Java application project that contains a JFrame form and import an existing image into the form.
-
GUI Development – Adding Buttons
Java allows developers to add buttons to trigger events in a GUI application; such as a form. In this video; Mike McMillan demonstrates how to add buttons to a GUI form; size and position them; and change the text.
-
GUI Development – Adding Check Boxes
In Java; you can use check boxes to allow a user to choose one or more options from a list. In this video; Mike McMillan uses the Palette feature to add check boxes to a graphical user interface.
-
GUI Development – Adding More Components to a GridBag Layout
When developing Java forms in the NetBeans IDE; the GridBagLayout allows you to easily add GUI components to an existing form; tailoring it to your needs. In this video; Mike McMillan demonstrates how to add labels and text forms beneath the existing GUI components in a GridBagLayout using the GridBag Customizer.
-
GUI Development – Adding Radio Buttons
In Java; you can use radio buttons to ensure that a user only chooses one option from a list. In this video; Mike McMillan uses the Palette feature to add radio buttons to a graphical user interface.
-
GUI Development – An Overview of the GridBag Customizer
The GridBag Customizer in Java enables you to control the placement of components of a user interface. In this video; Mike McMillan explores and discusses the parts of the GridBag Customizer.
-
GUI Development – Anchoring Buttons in a GridBag Layout
The NetBeans IDE GridBag Customizer enables you to easily anchor buttons within the layout when designing a Java GUI; allowing you to determine where the buttons are placed. In this video; Mike McMillan adds buttons to a form and changes the Anchor property in the Property Sheet of the Customizer.
-
GUI Development – Creating a File Chooser File Filter and Running the File Chooser App
Java enables developers to restrict the types of files the File Chooser imports into a GUI application. In this video; Mike McMillan demonstrates how to create a TextFilter class and override abstract methods to ensure that File Chooser can only display and import plain text files.
-
GUI Development – Exploring the GUI Builder
In Java; you can develop GUI programs using the GUI Builder. In this video; Mike McMillan uses the GUI Builder application to explore the Design; Source; History; Palette; Properties; and Navigator features of the GUI Builder.
-
GUI Development – Handling Button Click and Running a GUI Program
In Java; you can easily clear fields in a form by a simple click of a button. In this video; Mike McMillan demonstrates how to use Java code to set up a form; enter data into a text field; and then click the Clear Form button to clear a text field in the form.
-
GUI Development – Modifying the Spacing of a GridBag Layout
When designing a Java form in a GridBagLayout using the NetBeans IDE; you can easily change the space between the GUI component and the edge of its display area using the GridBag Customizer. In this video; Mike McMillan demonstrates how to modify the Inset constraints by adjusting their property values; and how to do so visually in the Property Customizer.
-
GUI Development – Preview Mode
In Java; you can view your form at any time without actually running the program. In this video; Mike McMillan demonstrates how to use the preview mode feature to view the design of a form and check if it works correctly.
-
GUI Development – Providing an Exit Button
In Java; when developing a graphical user interface (GUI); good design practice recommends that you provide an Exit button so the user has an intuitive and clean manner of closing the program. In this video; Mike McMillan demonstrates how to add an Exit button to a form and write the handling code so the button can perform the closing operation.
-
GUI Development – Reorganizing a GridBag Layout
When developing a Java form in a GridBagLayout; the NetBeans IDE GridBag Customizer can save you time by allowing you to reorganize the GUI components as desired. In this video; Mike McMillan demonstrates how to modify the layout of a form by repositioning and resizing an existing text field on the same row as another text field.
-
GUI Development – Retrieving Item from Combo Box
In Java; you can select items from a combo box and then process them as you wish. In this video; Mike McMillan demonstrates how to use the combo box feature to concatenate a user's data; which they have selected separately; into a single box.
-
GUI Development – Setting an Image as the Background of a Frame
Java enables developers to import an image into a JFrame form; but doesn't support background images per se. In this video; Mike McMillan demonstrates how to place a transparent JPanel over the JLabel that holds the image; and how to use the JPanel as the parent for all components.
-
GUI Development – Setting the Weights of Controls in a GridBag Layout
The GridBag Customizer in Java helps you control the resizing of controls when an application is running. In this video; Mike McMillan demonstrates how to implement automatic resizing of controls using the GridBag Customizer.
-
GUI Development – Starting a New Project
In Java; it's easy to start a new project. In this video; Mike McMillan demonstrates how to use the New Project feature to start and name a new project.
-
GUI Development – Using Subcontainers in a GridBag Layout
When developing a Java form in a GridBagLayout; subcontainers provide you with finer control over the layout by allowing you to group and manipulate GUI components as if they were a single component. In this video; Mike McMillan demonstrates how to enclose components in a subcontainer and set the constraints using the NetBeans IDE GridBag Customizer.
-
GUI Development – Using the GridBag Customizer – Moving Controls and Resizing
The GridBag Customizer in Java helps you reposition and resize controls that you have placed on a form. In this video; Mike McMillan demonstrates how to place and resize controls using the GridBag Customizer.
-
GUI Development – Using the GridBag Customizer – Setting Constraints and Previewing Layout
Layout constraints in Java help you ensure that a control will fill the space needed in a GridBag layout. In this video; Mike McMillan demonstrates how to set layout constraints in a GUI; and preview a layout while in design mode.
-
GUI Development – Working with Numbers
When developing a graphical user interface in Java; the data type needs to be converted from a String type after the user has entered numbers into a text field before the numbers can be used in calculations. In this video; Mike McMillan demonstrates how to use the String.valueOf() method to parse the input from String to the correct data type.
-
Inheritance – Abstract Classes
In Java; you can use abstract classes to create a class hierarchy if you don’t want to instantiate any objects of the class that forms the basis of the hierarchy. In this video; Mike McMillan demonstrates how abstract classes can be used in different ways; as they include fields and method definitions.
-
Inheritance – Composition Instead of Inheritance
In Java; Composition can be a better choice than Inheritance when you need to build complex class hierarchies. In this video; Mike McMillan demonstrates what Composition is and why it may be preferable to Inheritance when building complex classes.
-
Inheritance – Creating Super and Sub Class Objects
In Java; you can create objects in the superclass and the subclass. In this video Mike McMillan demonstrates how to create objects in the superclass and the subclass and check that their methods are working correctly.
-
Inheritance – Defining a Sub Class
In Java; a subclass can inherit fields and methods from the main class; or superclass. In this video; Mike McMillan demonstrates how to create a subclass which inherits fields from the superclass by taking advantage of the power of object-orientated programming.
-
Inheritance – Final Classes
In Java; you can use a final class for improved efficiency and security as it blocks other classes from extending it. In this video; Mike McMillan demonstrates how and when you might want to create a final class.
-
Inheritance – Mixing Super and Sub Class Objects
In Java; one of the powerful features of object-orientated programming is the ability to instantiate a subclass object using a superclass type. In this video; Mike McMillan demonstrates what type of object mixing is allowed when working with superclasses and subclasses.
-
Inheritance – Overriding Methods
In Java; there are special requirements to consider when you override methods that are part of the object hierarchy; such as the toString method. In this video; Mike McMillan demonstrates how to write an override for the toString method in the superclass and subclass.
-
Inheritance – Overriding Super Class Methods
In Java; changing a superclass’s method definition in a subclass is called overriding. Overriding is important; because most times the superclass definition can't be used exactly as is. In this video; Mike McMillan demonstrates how to override a superclass method in the subclass.
-
Inheritance – Protected Fields
Java inheritance allows you to use protected fields that enable you to easily access fields in a superclass from within its subclasses. In this video; Mike McMillan demonstrates how to define fields in a superclass as private by implementing private access modifiers; before accessing the private fields from within a subclass.
-
Inheritance – Protected Methods
Similar to protected fields; Java inheritance allows you to declare a method as protected in a superclass; enabling the method to be called from a subclass with a minimum amount of coding; but without breaking data encapsulation. In this video; Mike McMillan uses the protected access modifier and demonstrates how to create and implement a helper method.
-
Inheritance – Separate Class Files
In Java; inheritance allows you to move your class definitions from within your main program file into separate files making it easier to view and maintain the main program file. In this video; Mike McMillan demonstrates how to create a Java class library for storing class definitions in separate files.
-
Inheritance – Storing Objects in ArrayList
The ArrayList is a useful Java data structure; and through inheritance you'll be able to store objects from a superclass and subclass type in a single collection. In this video; Mike McMillan creates an ArrayList from superclass and subclass type objects before demonstrating how to retrieve data at runtime by specifying the correct object methods.
-
Inner Class – Local Inner Class Example
Java allows developers to define inner classes within another class definition or within more limited scopes; such as inside a loop. In this video; Mike McMillan demonstrates how to use a local inner class in a class definition.
-
Inner Class – Simple Member Class Definition
In Java; a member class is a simple non-static inner class defined within an outer class that provides encapsulation and allows you to access methods in the enclosing class from within the inner class. In this video; Mike McMillan demonstrates how to define a member class and utilize it as part of an outer class.
-
Inner Class – Using Inner Class as a Helper Class
Java allows developers to use an inner class as a helper class to abstract out some of the methods done by the main class. In this video; Mike McMillan demonstrates how to specify an inner class; which has access to the fields and methods of its outer class; for use as a helper class.
-
Interface – Abstract Class as Partial Interface
In Java; an abstract class can be considered a partial interface and provides an excellent way to create planned inheritance hierarchies and define default behavior. In this video; Mike McMillan demonstrates how to change an interface into an abstract class and define methods in the base while designing a class hierarchy.
-
Interface – Defining Methods Not in the Interface
In Java; when a class implements an interface; you can define methods additional to those specified by the interface that need to be defined. In this video; Mike McMillan demonstrates the methods specified in the Shape interface while drawing a circle; and defines a setter method that doesn't exist in the interface to set the circles radius.
-
Interface – Definition and Example
In Java; for a class to compile correctly it needs to implement all the methods listed for a particular interface. In this video; Mike McMillan demonstrates how interfaces are used to build a class hierarchy and defines the Shape interface and its required methods so that it can be implemented by a class.
-
Interface – Extending Interfaces
An interface can extend another interface in Java; allowing you to create an inheritance chain similar to a hierarchy of subclasses starting from a superclass. In this video; Mike McMillan demonstrates how to extend an interface and implement a class based on a set of extended interfaces.
-
Server Pages – Modifying the Input.html Page
In Java; you can modify the default pages created in a JSP app to fit the application. In this video; Mike McMillan discusses how to modify default pages in a JSP app.
-
Interface – Implementing an Interface
In Java; an interface is a collection of abstract methods that a class needs to define when implementing the interface; thereby inheriting the methods. In this video; Mike McMillan demonstrates how to create a class that implements an interface and how to define the methods specified for the particular interface.
-
Interface – Interface Reference
In Java; you can declare and assign values to static final fields that can be shared among a set of extended interfaces. In this video; Mike McMillan demonstrates how to declare an object to be of an interface type by instantiating it with a particular class that implements the interface.
-
Interface – Variables in Interfaces
In Java; you can provide abstraction in your programs by creating collection types based on an interface reference and store objects that implement the interface in the collection object. In this video; Mike McMillan extends the Shape interface to the Constants interface in order to compute the area of a circle.
-
IO Library – Getting String Data from the User
Java allows developers to get string input from users with the BufferedReader class. In this video; Mike McMillan demonstrates how to import the correct libraries; specify a variable for storage; and create a BufferedReader object; which interfaces between the program and the user output device.
-
Beans – Adding a Third Party Bean
A large market of third-party JavaBeans exist that you can download and use in your Java programs to take advantage of the functionality provided by these reusable software components. In this video; Mike McMillan demonstrates how to create a JFrame form in a new project; add a third-party bean to the NetBeans Palette; and use it in the form.
-
Beans – Creating a Numeric Slider Control
In Java; JavaBeans are often controls; such as a numeric slider; that you can create and reuse in other Java applications. In this video; Mike McMillan demonstrates how to bind a text field to a slider while creating a numeric slider bean in the NetBeans IDE.
-
DB – Creating a Table by Writing a SQL Statement
In Java; you can create a table by writing SQL commands. In this video; Mike McMillan demonstrates how to use the Execute Command feature to create a table with SQL commands written into the SQL editor.
-
DB – Creating a Table From an External Script
Java DB enables developers to import external scripts to create tables in NetBeans. In this video; Mike McMillan demonstrates how to write a script; import it into NetBeans; and run it to create a new table in a specific database.
-
DB – Creating a Table Using the Create Table Dialog Box
In Java; you can use a table to store the data of your database. In this video; Mike McMillan demonstrates how to use the Create Table dialog box to create a table.
-
DB – Entering Data Using the Insert Records Button
In Java; there is more than one method to enter data into a table. In this video; Mike McMillan demonstrates how to use the Insert Records button to enter data into a table.
-
DB – Entering Data Using the SQL Editor
In Java; you can use SQL statements to enter data into your table. In this video; Mike McMillan demonstrates how to use the SQL editor to enter data into a table.
-
DB – Starting the Server and Creating a Database
Java's built-in database; also known as a Derby; can be a good alternative if you are not using another relational database. In this video; Mike McMillan demonstrates how to use the Start Server feature to start a server before creating a database.
-
DB – Updating and Deleting Data
Java DB enables developers to work with database records using SQL commands or the user interface. In this video; Mike McMillan demonstrates how to start the server; view data; and insert and delete a record using SQL and the user interface.
-
Expression Language – Alternative Notation for Retrieving Bean Data
Java Expression Language allows you to use either dot notation or array notation to reference a bean and its properties. In this video; Mike McMillan demonstrates how to specify both notations to achieve the same results.
-
Expression Language – Introduction to Expression Language
In Java; you can use the Expression language to access the bean properties in JSP and also perform other calculation. In this video; Mike McMillan demonstrates how to use the expression language to access the bean properties in JSP.
-
Expression Language – Setting Up a Servlet in Stand-Alone Mode
Java Expression Language allows developers to set up a servlet in stand-alone mode so that a project can run Expression Language without a Java server page. In this video; Mike McMillan demonstrates how to create a new stand-alone Java web app using Expression Language.
-
Expression Language – Some Examples of Executing Higher-Order Functions
Java Expression Language allows developers to call higher-order functions as an alternative to using looping techniques. In this video; Mike McMillan demonstrates how to use count; sum; and map from the Expression Language processor in stand-alone mode.
-
ME – Creating the initialize() Method and the CommandAction Method
In Java; a project needs an Initialize method and a CommandAction method to create the handle events and get things started. In this video; Mike McMillan explains how to create these methods in the HelloMIDlet.java file.
-
ME – Finishing the Source Editor Version of Hello; World! for a Mobile Device
In Java; the final steps in a project are creating a text box and handling the exitCommand. In this video; Mike McMillan explains how to create the code for these two methods in Java ME.
-
ME – Installing and Activating the ME Platform in NetBean
The Java ME SDK is used to create applications for mobile devices. In this video; Mike McMillan discusses how to install NetBeans.
-
ME – Installing the ME SDK
The Java ME SDK allows users to use Java to create applications for mobile devices such as tablets and phones. In this video; Mike McMillan discusses how to install the Java ME SDK.
-
ME – Installing the Visual Designer and Setting Up the Project
To set up a new Java ME project; you need to install the Visual Designer for mobile applications. In this video; Mike McMillan demonstrates how to install the Visual Designer and start a project.
-
ME – Starting the Project and Changing the Super Class Using the Source Editor
In Java to create a MIDP application the correct project type needs to be specified. In this video; Mike McMillan discusses how to create a MIDP application; the correct project type and the super class of that project type.
-
ME – Visual Mobile Designer – Finishing the Project
In Java; you can use the Visual Designer to build your applications after the project is set up. In this video; Mike McMillan demonstrates how to build applications.
-
FX – Adding a Button to a FX Application
JavaFX enables developers to add buttons to forms. In this video; Mike McMillan demonstrates how to add a button to a form.
-
FX – Adding a Grid Pane to a Borderpane Layout
In JavaFX; a GridPane gives you the ability to design a grid using rows and columns. In this video; Mike McMillan explains and demonstrates how to use a GridPane to create a login section and add it to a BorderPane layout.
-
FX – Adding a Horizontal Flow Pane to a Borderpane Layout
In JavaFX; a horizontal flow pane is a layout tool that you can use for a set of icons that you want to appear in two columns in your BorderPane layout. In this video; Mike McMillan explains and demonstrates how to create a horizontal flow pane with icons.
-
FX – Adding a Title to a Borderpane Layout Using a Vbox
In JavaFX; you can create titles using many different layout styles. In this video; Mike McMillan explains and demonstrates how to create a title using a vertical box layout.
-
FX – Adding a Vertical Pane to a Borderpane Layout
In JavaFX; vertical panes allow you to display data in a vertical manner; such as list of items to select. In this video; Mike McMillan explains and demonstrates how to add a vertical pane to a BorderPane layout.
-
FX – Adding an Anchor Pane to a Borderpane Layout
In JavaFX; an AnchorPane allows you to anchor nodes to a specific part of a pane; so that if the pane is resized; the nodes move relative to the resizing of the pane. In this video; Mike McMillan explains and demonstrates how to use an AnchorPane to layout the buttons for a BorderPane.
-
FX – Adding Text Fields and Labels to a FX Application
JavaFX enables developers to add controls to applications. In this video; Mike McMillan demonstrates how to add text fields and labels for entering user information to a JavaFX form.
-
FX – Creating a Borderpane and Horizontal Box
JavaFX provides several layout models for creating user interfaces In this video; Mike McMillan demonstrates how to create a border pane to store different layouts; as well as how to place buttons in a horizontal pane inside the border pane's top region.
-
FX – Creating a Hello; World! Application
Java enables developers to create a Hello World application in Java FX; which can be used for desktop and Internet-rich environments. In this video; Mike McMillan demonstrates how to code a Java FX application that displays a message when a button is clicked.
-
FX – Displaying Text After a Button Click in a FX Application
JavaFX enables developers to display a text message to the user when they've clicked a button on a form. In this video; Mike McMillan demonstrates how to write the code for an event handler that handles a button-click and displays specified text when the action is successful.
-
FX – Starting a New Form and Setting the Layout
JavaFX enables developers to create applications with rich user interfaces. In this video; Mike McMillan demonstrates how to start creating a new application by modifying the default Hello World application provided by JavaFX.
-
FX – Using CSS to Style the User Interface
JavaFX enables developers to us Cascading Style Sheets (CSS) to create sophisticated styles for Internet applications. In this video; Mike McMillan demonstrates how to create and modify a CSS file; and add a reference to it in the application code.
-
Server Pages – Creating a Server Pages File to Handle Data Input and Running the App
In Java; you can create a JSP file; to create a JSP Web App; which handles the input from the index page. In this video; Mike McMillan discusses how to create a JSP file to handle the input from the index page.
-
JSF Application – Adding Properties; Getters; and Setters to the Managed Bean
In Java; you can add getter and setter methods for the properties of your managed bean in Java. In this video; Mike McMillan demonstrates how to use the Getter and Setter option to generate getter and setter methods for two properties.
-
JSF Application – Creating and Defining a Managed Bean
In Java; you can use a managed bean to process user data for your JSF application. In this video; Mike McMillan; demonstrates how to use the JSF Managed Bean feature to add a managed bean to your JSF application.
-
JSF Application – Introduction and Creating a JSF Project
There are several advantages of using the JSF framework when building Java web applications. In this video; Mike McMillan; demonstrates how to use the New Project feature to create a new JSF framework project.
-
Multi-Threading – Creating a Second Thread
In Java; you can create multi-threaded programs. In this video; Mike McMillan demonstrates how to use the Runnable interface option in a class to create a second thread in a multi-threaded program.
-
Multi-Threading – Creating a Second Thread by Extending Thread
In Java; there are multiple ways to create multi-threaded programs. In this video; Mike McMillan demonstrates how to use the Super class to create a second thread in a multi-threaded program.
-
Multi-Threading – Running Code Inside Multiple Threads
In Java; you can execute a multi-threaded program with threads that get user input and threads that do calculations. In this video; Mike McMillan demonstrates how to use two threads to execute a multi-threaded program.
-
Nested Loops
Nested loops in Java allow you to do complex programming and coding. In this video; Mark Lassoff demonstrates a typical situation and a typical structure for nested loops.
-
Network – Creating a Datagram Client Part 1
Java's NetBeans IDE enables you to create a datagram client by creating a socket and an input and output object. In this video; Mike McMillan demonstrates how to create a new NetBeans Java application; configure a Socket object; and program the InputStream and OutputStream objects.
-
Network – Creating a Datagram Client Part 2
Java's NetBeans IDE enables you to configure your datagram client to handle input and output to and from a server. In this video; Mike McMillan demonstrates how to create an input object; handle input and output from and to the server; and close the datagram client.
-
Network – Creating a Datagram Server Part 1
Java's NetBeans IDE enables datagram networking; a connectionless networking where packets are sent and received in any order and reassembled after delivery. In this video; Mike McMillan begins writing a datagram network server by establishing a port number and starting the server.
-
Network – Creating a Datagram Server Part 2
Java's NetBeans IDE enables you; after starting a datagram server; to wait for a client to send a connection request and to accept it. In this video; Mike McMillan creates a client object and accepts a request from the client.
-
Network – Creating a Datagram Server Part 3
Java's NetBeans IDE enables you; after starting a datagram server and accepting a client's connection request; to read in client data and respond to it. In this video; Mike McMillan demonstrates how to respond to a client's message and break off communication.
-
Network – Creating a Multicast Client
In Java; a Multicast Socket client must be given a port address. In this video; Mike McMillan discusses how to create a Multicast Client.
-
Network – Creating a Multicast Client and Connecting to Multicast Server
In Java; after setting up the properties; the Multicast Client must receive data from the user and send it to the server. In this video; Mike McMillan discusses how to write the code for these tasks and test the Multicast Client server project.
-
Network – Getting URL Information and Web Page Content
In Java; you can retrieve a web page's information along with its content. In this video; Mike McMillan uses the network API to retrieve a web page's protocol; host; and port information; as well the content within the page.
-
Network – Running the Datagram Server and Client
Java is an object-oriented computer programming language designed to have as few implementation dependencies as possible. In this video; Mike McMillan demonstrates how to test the Datagram Server and Client by running both programs and sending a message from the client to the server.
-
Network – TCP Socket Client – Defining Fields and Constructor
Java allows developers to create a TCP/IP socket client. In this video; Mike McMillan demonstrates how to set up the environment for a TCP/IP client before implementing the Run method.
-
Network – TCP Socket Client – Defining the Main() Method
Java allows developers to create a TCP/IP socket client. In this video; Mike McMillan demonstrates how to finish creating the client by defining the Main() method and implementing a try/catch statement to handle exceptions.
-
Network – TCP Socket Client – Defining the Run() Method
Java allows developers to define a TCP/IP socket client. In this video; Mike McMillan demonstrates how to implement the Run() method used to communicate with the TCP/IP socket server.
-
Network – TCP Socket Server – Defining Fields and Constructor
Java allows developers to create socket clients that communicate with a socket server. In this video; Mike McMillan demonstrates how to set up the environment for a TCP/IP socket client before implementing the Run() method.
-
Network – TCP Socket Server – Defining the Main() Method
Java allows developers to create a TCP/IP socket server. In this video; Mike McMillan demonstrates how to finish the socket server code by implementing the Main() method; which starts the server and waits for input from a client.
-
Network – TCP Socket Server – Defining the Run() Method
Java allows developers to create a TCP/IP socket server to send and receive data to and from TCP/IP socket clients. In this video; Mike McMillan demonstrates how to specify the Run() method using a while loop; as well as a try-catch statement to handle exceptions.
-
Network – TCP Socket Server – Setting Up the Environment
Java allows developers to create TCP/IP socket servers and clients. In this video; Mike McMillan demonstrates how to begin defining the first half of the Run() method used by a socket server to send and receive data to and from clients.
-
NIO API – Copying Files
Java's NIO API allows you to copy a source file's contents to a target file or destination using the Files.copy method. In this video; Mike McMillan demonstrates how to convert a source and a target file to Paths objects calling the get method; before calling the Files.copy method and the arguments needed to overwrite the target file.
-
NIO API – Reading a File with Buffer Mapping
Java's IO and NIO API classes allow you to use BufferMappingInput class methods to read data from a file. In this video; Mike McMillan demonstrates how to use a try-with-resource block to open a channel to map a file into a buffer which he then outputs and reads.
-
NIO API – Writing a File with Buffer Mapping
Java's IO and NIO API classes allow you to use BufferMappingOutput class methods to write data to a file. In this video; Mike McMillan uses a try-with-resource block and the Paths.get method to open a channel allowing him to write data converted to bytes to a file mapped to a buffer.
-
Object References
Java class objects are referenced objects possessing properties you must consider when operating on them. In this video; Mike McMillan creates a new object and assigns it an already instantiated object to link them; as well as any references to them; even if one changes its properties.
-
Regular Expressions – Finding a Simple Match
In Java; you can create a regular expression and use it to find a simple match. In this video; Mike McMillan uses a simple regular expression to find matches in a string.
-
Regular Expressions – Finding Spaces and Words in a String
In Java; you can count the number of words; numbers; and spaces in a sentence using expressions. In this video; Mike McMillan uses regular expressions to count spaces and non-spaces in a string.
-
Regular Expressions – Stripping Tags from HTML Document
In Java; you can use regular expressions to modify text; fix the spelling of words; and rearrange text. In this video; Mike McMillan uses regular expressions to strip out HTML tags from text in a document.
-
Remote EJB – Creating a Session Bean and a Business Method
In Java; you can call a program component; also known as a session bean; from another program. In this video; Mike McMillan demonstrates how to use the Session Bean feature to create a session bean that returns a message when called from another program.
-
Remote EJB – Creating the Class Library and EJB Module
In Java; you can create program components that can be called from other remote programs. In this video; Mike McMillan demonstrates how to use the New Project feature to create a Java Class Library and an Enterprise JavaBeans module.
-
Remote EJB – Setting Up and Testing the Application Client
In Java; you can access a remote session bean from any application client that has access to the bean. In this video; Mike McMillan demonstrates how to use the Enterprise Application Client feature to set up an application client to access a remote session bean via the GlassFish Server.
-
RESTful Web Services – Setting Up a Project
In Java; NetBeans is an excellent way to build a RESTful web service. In this video; Mike McMillan; demonstrates how to use the New Project feature to create a RESTful web service in the NetBeans environment.
-
Scanner API – Getting Numeric Data from User
Java's NIO API Scanner library's Scanner class allows you to obtain numeric user-input data. In this video; Mike McMillan demonstrates how to create a Scanner object using System.in as its argument and the nextInt and nextDouble methods to prompt users to input an integer and a floating-point number.
-
Setter Methods
Java setter methods allow you to access and change the values of private fields in class-based or object-oriented programming. In this video; Mike McMillan demonstrates the necessary syntax to create a void setter method (which doesn't return a value) in his class definition.
-
Software as a Service – Adding Methods to the Servlets
Java allows developers to create software as a service. In this video; Mike McMillan demonstrates the second step in creating a photo manager app by adding an Amazon S3 Bucket to the processRequest method of each of the three servlets created in step one.
-
Software as a Service – Defining Servlets for a Photo Manager Using Amazon S3 Buckets
Java allows developers to create software as a service. In this video; Mike McMillan demonstrates the first step in creating a photo manager app; which is defining a series of servlets; using Amazon S3 Buckets.
-
Software as a Service – Finishing Up the Method Definitions and Doing Some Housekeeping
In Java; the getPhoto method helps you retrieve photos. In this video; Mike McMillan demonstrates how to finish up defining the getPhoto method; copy a picture to the web pages directory; and set the public and secret keys.
-
Static Variables
Java static variables hold their value with each instantiation of a new class object. They don't depend on class instances and can be read and written by any object of a class. In this video; Mike McMillan demonstrates how to create a count static variable for the Java Date class to track an object count.
-
String API – Comparing Strings
In Java; you can compare strings for equality and sorting purposes. In this video; Mike McMillan uses the compareTo method to determine if two strings are equal to each other.
-
String API – Extracting Characters
Java API provides various tools and options for extracting characters from string objects. In this video; Mike McMillan demonstrates how both single characters as well as a range of characters can be extracted from sub strings and string objects using the charAt and getChars extraction methods.
-
String API – Modifying Strings with Substring()
Java API provides various tools and options for modifying strings and substrings. In this video; Mike McMillan explains how to modify the contents of a string object using the substring() method.
-
String API – Searching Strings
In Java; you can search a string to find either a character or a set of characters. In this video; Mike McMillan demonstrates the string class methods which can be used for searching strings.
-
String API – String Concatenation and Literal Assignment
The two primary operations performed on strings in Java are assignment and concatenation. In this video; Mike McMillan demonstrates how to perform string concatenation and literal assignment.
-
String API – String Constructors
In Java; you can use class constructor statements to build strings instead of using direct assignment. In this video; Mike McMillan demonstrates how to create strings using String class constructors.
-
StringBuilder API – Creating StringBuilder Objects
Java's NIO API StringBuilder class; unlike the String class; offers dynamic capacity; allowing you to add; remove; and append string data without having to create new objects. In this video; Mike McMillan demonstrates how to assign a string to a StringBuilder object and adds to it by concatenation; then explains the class's length; capacity; and append methods.
-
StringBuilder API – Getting Data About StringBuilder Objects
Java's NIO API StringBuilder class offers multiple methods you can use to retrieve data from StringBuilder objects. In this video; Mike McMillan demonstrates how to use the CharAt method for returning a specific character; and the substring method which retrieves either a specified index or a string starting at a specific position through to the end of the string.
-
StringBuilder API – Modifying StringBuilder Objects
Java's NIO API StringBuilder class offers multiple methods for inserting strings and characters into StringBuilder objects. In this video; Mike McMillan demonstrates three methods used to insert or change object data: setCharAt for replacing specific characters; insert which allows you to insert data at specific points; and reverse which reverses the characters making up a StringBuilder object string.
-
StringTokenizer API – Tokenizing a String
The Java NIO API StringTokenizer class allows you to tokenize a string using key/value pairs; thereby creating an object the data of which you can parse more effectively. In this video; Mike McMillan demonstrates how to create a StringTokenizer object; and uses the hasMoreTokens and nextToken methods to loop through and write out the tokenized data.
-
This Keyword
The this keyword in Java allows you to differentiate current objects when using parameter names identical to the fields of a class. In this video; Mike McMillan demonstrates how to change the parameters of a Date class definition to match the Date class fields to which they are assigned using the this keyword.
-
Using Complex Conditionals
Java’s complex conditionals allow you to test multiple conditions or ranges for a variable. In this video; Mark Lassoff demonstrates how to code an IF-ELSE block to make a complex decision.
-
Using ’s Switch Statement
Java allows you to use the switch case break statement to make numerous equivalency comparisons. In this video; Mark Lassoff demonstrates how to use the switch statement and calculate tax on salary.
-
Using Simple Conditionals
Simple conditionals in Java allow you to branch the flow of control. In this video; Mark Lassoff demonstrates how to add conditionals to your code.
-
Using the Array Object
Arrays in Java allow you to store more than one item of data; such as all the players on a team. In this video; Mark Lassoff demonstrates how to code an array.
-
Using the ArrayList Class
ArrayLists in Java offer you a dynamic way to keep a list of data. In this video; Mark Lassoff demonstrates how to use an ArrayList to change and resize an array.
-
Web App with DB – Adding a Cascading Style Sheet to the Project
To define how the HTML elements in your Java web app will display and enhance the overall appearance of the web interface; you can create and implement a Cascading Style Sheet (CSS) using the NetBeans IDE. In this video; Mike McMillan creates and populates a new CSS file before linking it to the index.jsp and response.jsp pages.
-
Web App with DB – Adding a Connection Pool to a Project
After creating a Java web app; the NetBeans IDE enables you to easily implement connectivity between the server and the database by setting up a connection pool that allows multiple users to connect to your web app. In this video; Mike McMillan demonstrates how to declare a connection pool using the GlassFish categories New JDBC Connection Pool wizard.
-
Web App with DB – Adding a JDBC Resource
Creating a JDBC resource in the NetBeans IDE enables you to easily provide your Java web app with a means of connecting to a database with connection pooling functionality. In this video; Mike McMillan demonstrates how to configure a new JDBC resource for a GlassFish server that's used by a web app for connection pooling.
-
Web App with DB – Adding a Reference to the Data Source From the Web App
After creating the connection pool and JDBC resource for the server; you need to instruct the Java web app to use the data source you configured. In this video; Mike McMillan uses NetBeans IDE to create an entry in an application's web.xml deployment descriptor.
-
Web App with DB – Adding the Database Driver JAR File to the Server
Before deploying your Java web app; it is important to add the database driver's JAR file to the server to enable the server to communicate properly with your application. In this video; Mike McMillan demonstrates how to locate the database driver's JAR file and add it to project's Libraries directory.
-
Web App with DB – Finishing Up the Index.jsp Page
When creating a Java web app that connects to a database server; the NetBeans IDE enables you to easily prepare the index.jsp page by implementing an HTML form that captures user data. In this video; Mike McMillan demonstrates how to add a form to the application's welcome page that allows users to select options from a drop-down list.
-
Web App with DB – Setting Up the Project and the Index.jsp Page
The NetBeans IDE enables you to easily begin developing a Java web app that connects to a database server by creating a new Java web project and setting up the index.js page. In this video; Mike McMillan uses the New Project wizard to create an empty web app before making the initial preparations to the index.jsp page in the editor.
-
Web App with DB – Writing a Response.jsp Page
In Java; after creating an index.jsp page for a web app that connects to a database server; you need to create a response.jsp page to display data you retrieve from the database in a structured manner. In this video; Mike McMillan demonstrates how to create a response.jsp page in the NetBeans IDE and prepare an HTML table in the editor.
-
Web Application – Creating a Hello; World! Application
"The NetBeans IDE runs on the Java platform and provides a simplified software development process that allows you to easily create a basic ""Hello; world!"" web application. In this video; Mike McMillan demonstrates how to create a NetBeans IDE project and build and run a web application that displays the greeting; ""Hello; world!""."
-
Web Application – Creating a User Input Form
The NetBeans IDE allows you to easily develop Java web applications that let you interact with the user and obtain data by way of a simple user input form. In this video; Mike McMillan demonstrates how to create a NetBeans IDE project and create a form for collecting the first and last name from the user.
-
Web Application – Displaying User Data in Servlet Page
The NetBeans IDE allows you to easily display input data back to the user in a webpage after it has been posted to a server by writing a Java web application servlet. In this video; Mike McMillan uses variables to retrieve user data from a request object before writing the code that will display the data in a servlet page.
-
Web Application – Posting User Data to the Server
Once a Java web application has been created to obtain data from the user; you can easily post the data from the user input form to the web server using NetBeans. In this video; Mike McMillan demonstrates how to create a servlet and use the HTTP POST method to get information from the Web and store it on a server.
-
Web Services – Creating a Application to Consume a Web Service
In Java; after you have deployed a web service; many different types of applications can access it. In this video; Mike McMillan demonstrates how to use the New Project feature to create a Java application that consumes a web service.
-
Web Services – Creating a JSP Application to Consume a Web Service
In Java; you can consume a web service in a JSP application. In this video; Mike McMillan demonstrates how to use Java EE 6 to create a JSP application that consumes a web service.
-
Web Services – Creating a Servlet to Consume a Web Service
A standard Java application and a servlet can consume a web service. In this video; Mike McMillan demonstrates how to use the Servlet feature to create a servlet that consumes a web service.
-
Web Services – Creating a Web Service and Adding an Operation
In Java; you can create a web service to allow two devices to communicate over the Web. In this video; Mike McMillan demonstrates how to use the Java Web category to create a web service and an operation to perform when connected to a web service.
-
Web Services – Deploying and Testing a Web Service
In Java; you can deploy and test a web service in the NetBeans Web Services environment. In this video; Mike McMillan demonstrates how to use the Projects tab to deploy and test a web service.
-
Dates and Times across Time Zones
After watching this video; you will be able to describe how to work with dates and times across time zones in Java.
-
Working with Java Reference Types
After watching this video; you will be able to clone; compare; and cast Java reference types within the context of a Java business application.
-
Building a Concurrent App
After watching this video; you will be able to use Java SE 7 to build a concurrent application.
-
Creating a Concurrent App
After watching this video; you will be able to generate a concurrent Java business application.
-
Using Generics and Collections
After watching this video; you will be able to use generics and collections to develop a Java application.
-
Using Java Assertions and Exceptions
After watching this video; you will be able to use Java SE 7 assertions and appropriate error handling to build a Java business application.
-
Using Localization
After watching this video; you will be able to implement localization features in a Java SE 7 business app.
-
Working with Java NIO
After watching this video; you will be able to incorporate Java NIO within a business application.
-
Creating a Subclass
Creating a subclass in Java allows you to derive your new class from the existing classes. In this video; Mark Lassoff demonstrates how to reuse the fields and methods in your existing classes.
-
Building a Data-driven App
After watching this video; you will be able to use JDBC and File I/O to build a data-driven Java SE 7 app.
-
Private Methods
Java object-oriented programming uses private fields to hide data from user code; thereby denying direct access to users. In this video; Mike McMillan demonstrates the difference between private and public methods; and renders a public method private before inserting a call to the method in his class definition.
-
Using Assertions
After watching this video; you will be able to use assertions within a Java business application.
-
While and Do While Loops
Java allows you to perform While and Do While loops to repeat a block of code numerous times. In this video; Mark Lassoff demonstrates how to use these two common programming structures.
-
For Loops
For loops in Java allow you to keep all your iterations together in one compact and convenient statement. In this video; Mark Lassoff demonstrates how to create a For loop with intialization; continuation condition; and counter.
-
Working with Exceptions
After watching this video; you will be able to work with exceptions including throwing and catching exceptions within the context of the development of a Java business application.
-
Working with Java Data Types
After watching this video; you will be able to incorporate use of primitive Java data types; strings; and arrays into a business application.
-
Network – Creating a Multicast Server Part 1
Java is a class-based; object-oriented computer programming language. Java makes it easy to set up a mutlicast server. In this video; Mike McMillan demonstrates how to write the code to receive data from multiple clients.
-
Performing CRUD Operations Using the JDBC API
After watching this video; you will be able to perform CRUD operations using the JDBC API.
-
Collection API – Converting Base 10 to Base 2 Using a Stack
There are a number of methods in Java that can be autogenerated. In this video; Mike McMillan demonstrates how to generate Getter methods; Setter methods; and the toString() method automatically without the need for any programming assistance.
-
Working with Abstract Classes and Interfaces
After watching this video; you will be able to incorporate abstract classes and interfaces as part of a Java business solution.
-
Network – Creating a Multicast Server Part 1
Java is a general-purpose computer programming language that is specifically designed to have as few implementation dependencies. In this video; Mike McMillan demonstrates how to implement the server settings by inputing necessary properties such as the port number and the host name.
-
Working with Java Operators
After watching this video; you will be able to incorporate use of Java operators into a Java business application.
-
Collection API – Converting Base 10 to Base 2 Using a Stack
The Java Stack class allows you to create a base-to-base conversion program. In this video; Mike McMillan demonstrates how stacks can be used to solve everyday problems; imports the Stack library; creates a stack and builds a program converting numbers from base 10 to base 2.
-
Exercise: Building a Basic Java Application
After watching this video; you will be able to use the basic building blocks of Java to create a basic Java application.
-
Static Methods
Java static methods allow you to compute results based on a class or class object; rather than on a particular class instance. In this video; Mike McMillan demonstrates how to create and define a public static method; as well as its return type and statement; and use it to compute the number of days in a month.
-
Using Flow Control
After watching this video; you will be able to incorporate use of selection statements; for loops; while and do-while loops into a Java business application.
-
Creating Classes and Methods
After watching this video; you will be able to incorporate specification of classes and associated methods as part of a Java business application.
-
Working with Static and Final Modifiers
After watching this video; you will be able to incorporate static and final modifiers within a Java business application.
-
Creating a Basic Business Application
After watching this video; you will be able to create and run a basic business application.
-
Implementing Inheritance
After watching this video; you will be able to incorporate an inheritance structure as part of a Java business solution.
-
Working with Annotations
After watching this video; you will be able to work with Java standard and custom annotations within the context of the development of a Java business application.
-
Working with Java I/O
After watching this video; you will be able to incorporate Java I/O within a business application.
-
Exercise: Optimizing a Java Application
After watching this video; you will be able to build Java classes and use Java features such as inheritance; interfaces; and abstract classes to optimize a Java application.
-
Working with Java Packages and Access Modifiers
After watching this video; you will be able to create and import a specific Java package; import static methods and variables into a source file; and identify the access levels of the class members in that package as part of a Java business solution.
-
Creating Objects and Enums
After watching this video; you will be able to work with Java enumerations and objects within a Java business application.
-
Managing Operations with the JDBC API
After watching this video; you will be able to manage operations performed using the JDBC API.
-
Using File I/O in a Java App
After watching this video; you will be able to use Java SE 7 File I/O API to build an application.