Category Archives: Java Video Tutorial

Java Algorithms

Java AlgorithmsWelcome to my Java Algorithms tutorial. In this series I will cover everything there is to know about Java algorithms and data structures.

An algorithm is just the steps you take to manipulate data. A data structure is the way data is arranged in memory. There are 3 main data structure operations I will focus on first being inserting, deleting and searching for data.

Like all of my tutorials, everything is simple at first and then I cover more complex topics. The code below should help. Continue reading Java Algorithms

MVC Java Tutorial

MVC Java TutorialWelcome to my MVC Java Tutorial. I have been asked for this tutorial many times in the last few weeks.

To understand the Model View Controller you just need to know that it separates the Calculations and Data from the interface. The Model is the class that contains the data and the methods needed to use the data. The View is the interface. The Controller coordinates interactions between the Model and View.

The video and code below will make it very easy to understand. Continue reading MVC Java Tutorial

Refactoring Video Tutorial

Code Refactoring Video TutorialAfter you learn the core syntax of a language many programmers are lost on what to learn next. What do you need to know to create large flexible and extendable applications?

I did my best to teach you how to structure your programs in my Object Oriented Design Tutorial. And, to understand OOD you have to understand UML. Then we walked down the path laid by the programming masters when we looked at Design Patterns. That left me with the final part of writing great code, which is my refactoring video tutorial. Continue reading Refactoring Video Tutorial

Install Eclipse for Java

Install Eclipse for JavaI’ve been asked to show you how to Install Eclipse for Java a few times lately. So in this video I’ll show you how to install Eclipse step-by-step.

Not only will I show you how to install eclipse, but I’ll also cover how to install Java, set up code completion and install java libraries.

If you prefer to read these steps look here Install Java 1.7 Eclipse (For Mac and PC) and How to Install Java LibrariesContinue reading Install Eclipse for Java

UML 2.0 Deployment Diagrams

UML 2.0 Deployment DiagramsWelcome to my UML 2.0 Deployment Diagrams tutorial. You use deployment diagrams to show how software and hardware work together.

In this tutorial, I explain how to use nodes, artifacts, dependency arrows, communication lines, deployment specs and much more.

Following the video, you’ll find a deployment diagram cheat sheet. You should use that to help you understand everything covered in the video and as a cheat sheet for the future.

Continue reading UML 2.0 Deployment Diagrams

UML 2 State Machine Diagrams

UML 2 State Machine DiagramsWelcome to my UML 2 State Machine Diagrams tutorial! I’m also going to cover Package diagrams in this tutorial because they are so simple to describe.

State machine diagrams model the changing states of objects and the events that cause these state changes. Everything you could ever want to know about them is covered below.

After the video you can find a state machine diagram cheat sheet to help you better learn this topic.

Continue reading UML 2 State Machine Diagrams

UML 2.0 Component Diagrams

UML 2.0 Component DiagramsWelcome to my tutorial on UML 2.0 Component Diagrams! Blocks of code are set up as components to create reusable blocks of code. Component diagrams are then used to show how components are used to create software systems.

On top of covering every symbol associated with component diagrams I decided to also cover Composite Structures. They model how objects work together when a class diagram doesn’t cut it. Also relationship arrows are covered again because of your requests. Everything follows including a cheat sheet to help.

Continue reading UML 2.0 Component Diagrams

UML 2.0 Timing Diagrams

UML 2 Timing DiagramsWelcome to my UML 2.0 Timing Diagrams tutorial. If you missed part one, you may want to check it out before proceeding here UML 2.0 Tutorial.

UML timing diagrams are used to detail interactions based on time. With timing diagrams you’ll describe when an event occurs, how long it takes for other participants to react and how long they’ll take to complete an interaction.

I cover pretty much everything about timing diagrams in the video that follows and the timing diagram cheat sheet that follows that should get you the rest of the way.

Continue reading UML 2.0 Timing Diagrams

UML 2.0 Communication Diagrams

UML 2.0 Communication DiagramsWelcome to my UML 2.0 Communication Diagrams tutorial! If you haven’t seen my tutorial on Sequence Diagrams check it out first, because in this tutorial I explain Communication Diagrams by comparing them to Sequence Diagrams.

Communication diagrams are used to show links between participants. They focus in on which interactions are triggered and when. They also describe the order of events in all interactions. With the video below and the cheat sheet that follows it, you should be able to understand them in no time at all.

Continue reading UML 2.0 Communication Diagrams

UML 2.0 Sequence Diagrams

UML 2.0 Sequence DiagramsWelcome to my tutorial on UML 2.0 Sequence Diagrams! Sequence diagrams model interactions in your program and provide you with a logical way to layout your system. They are about showing the order of interactions between the parts of your program.

In making sequence diagrams, you describe which interactions are triggered and when. They focus in on the order of events in all interactions.

The video below covers just about everything and the cheat sheet that follows is there to re-enforce the specifics.

Continue reading UML 2.0 Sequence Diagrams

UML 2.0 Class Diagrams

UML 2.0 Class DiagramsWelcome to my UML 2.0 Class Diagrams tutorial. Class diagrams describe classes and how they relate to each other.

I’ll not only cover class diagrams, but I’ll also cover abstraction, encapsulation, visibility, multiplicity, dependence, inheritance, constraints, OCL and more.

As an added benefit, because the concept is so simple, I’ll also cover Object Diagrams in this tutorial. I hope you find it useful.

Continue reading UML 2.0 Class Diagrams

UML 2.0 Activity Diagrams

UML 2.0 Activity DiagramsWelcome to my tutorial on UML 2.0 Activity Diagrams! In this tutorial, I’ll show you all of the symbols used to create activity diagrams.

Activity diagrams show what actions occur step-by-step to achieve a given goal. Activity symbols are very similar to flowchart notation, so you should find this topic very easy to learn.

After the video, I have the entire image I taught from. I think it will be a great cheat sheet. The program I use is available here UMLet. It is free and works on all OSs.

Continue reading UML 2.0 Activity Diagrams

UML 2.0 Video Tutorial

UML 2.0 Video TutorialWelcome to my UML 2.0 Video Tutorial! In this series I will cover Use Case, Activity, Class, Object, Sequence and many more UML Diagrams.

Unified Modeling Language (UML) is a graphical way of describing software systems. In this tutorial, I’ll focus on Use Case Diagrams which list the steps a system needs to follow to reach a goal. I’ll walk you through the parts of a Use Case Diagram as well as the requirements of a Use Case Description.

It starts slow, but quickly it will dramatically improve your ability to create robust systems.

Continue reading UML 2.0 Video Tutorial

Design Pattern Video Tutorial

Design Pattern Video TutorialHere are all 26 videos from the Design Pattern Video Tutorial. Design patterns provide a reusable solution to commonly occurring software problems. Through the study of them you will dramatically increase your development time and improve code readability.

Below I have listed all of my design pattern video tutorials along with the code. I hope you find it useful for steering through this often confusing course of study. I feel sure that if you watch the videos and analyze the code you will better understand design patterns.

Continue reading Design Pattern Video Tutorial

Visitor Design Pattern Tutorial

Visitor Design Pattern TutorialWelcome to my Visitor Design Pattern Tutorial! This is the last part of my design pattern video tutorial.

The Visitor design pattern allows you to add methods to classes of different types without much altering to those classes. You can make completely different methods depending on the class used with this pattern.

With both the video below and the code that follows you should be able to start using this pattern in your code easily.

Continue reading Visitor Design Pattern Tutorial

Memento Design Pattern Tutorial

Memento Design Pattern TutorialWelcome to my Memento Design Pattern Tutorial! The Memento design pattern provides a way to store previous states of an Object easily.

It has 3 main classes. Memento: The basic object that is stored in different states. Originator: Sets and Gets values from the currently targeted Memento. Creates new Mementos and assigns current values to them. Caretaker: Holds an ArrayList that contains all previous versions of the Memento. It can store and retrieve stored Mementos. All of the code is down below to help you learn.

Continue reading Memento Design Pattern Tutorial

Mediator Design Pattern Tutorial

Mediator Design Pattern TutorialWelcome to my Mediator Design Pattern Tutorial! The Mediator design pattern is used to handle communication between related objects (Colleagues). All communication is handled by a Mediator Object and the Colleagues don’t need to know anything about each other to work together.

The Gang of Four description: Allows loose coupling by encapsulating the way disparate sets of objects interact and communicate with each other.  Allows for the actions of each object set to vary independently of one another.

Continue reading Mediator Design Pattern Tutorial

Make Java Executable

Make Java ExecutableI’ve been asked many times to show how to make a java program executable. It is actually very easy to make Java executable on any computer.

The main tool you’ll use on a PC is the Command Line or DOS Prompt. To find it click Start and in the box at the bottom type cmd.exe. If you’re on a MAC, just search for terminal in the search box.

I walk through everything in the tutorial video below. If you need any other help, everything follows in text format after the video.

Continue reading Make Java Executable

Interpreter Design Pattern Tutorial

Interpreter Design Pattern TutorialWelcome to my Interpreter Design Pattern Tutorial! The Interpreter design pattern is ignored by most, but in this tutorial I’ll show you how to do some cool things with it.

In top of that, I’ll also answer all of the recent questions I’ve received about both Java Reflection and String manipulation. I found you can do pretty great things if you combine reflection with the interpreter design pattern.

All of the code follows the video and it is heavily commented to help you learn.

Continue reading Interpreter Design Pattern Tutorial

Chain of Responsibility Design Pattern Tutorial

Chain of Responsibility Design Pattern TutorialWelcome to my Chain of Responsibility Design Pattern Tutorial! Wow, that was a mouthful!

This pattern has a group of objects that are expected to between them be able to solve a problem. If the first Object can’t solve it, it passes the data to the next Object in the chain. In this tutorial, I’ll use it to make the right calculations based off of a String request. While that is pretty simple the capabilities of this pattern are endless.

The code follows the video to help you learn.

Continue reading Chain of Responsibility Design Pattern Tutorial