
Master Java fundamentals from the compiler and data types to arithmetic, input-output, and control flow, then explore methods, object-oriented programming, arrays, and text file processing.
Mike McMillan introduces the course with 13 years as a full-time computer information systems instructor at Polasky Technical College, teaching introductory programming in C++, C sharp, Java, and more.
Download and install the jdk from oracle on windows, accept the license, and run the auto installer with default options; the setup includes development tools, demos, and a runtime environment.
Set up the JDK on Windows by locating the JDK bin folder and adding it to the system PATH, so you can run Java and the Java C compiler directly.
Open a dos prompt, create a java folder, write a class with a capitalized name in a .java file, and print hello world via the main method.
Compile and run your Java program using javac and the java command, ensuring the source matches exactly the example; then run with java HelloWorld and view the hello world output.
Identify and fix common Java errors, including missing semicolons, misspelled keywords, and missing braces, by reading precise compiler messages and correcting symbols like println and system.
Modify the hello world program to print in parts, compare print and println behavior, and use the concatenation operator to join strings, then compile and run to view results.
Explore the basic building blocks of Java: data types that define identifiers and expressions, enabling numeric, string, boolean, and char data, including concatenation and arithmetic operations.
Identify Java's numeric data types, including int and long for integers, float and double for floating point values, plus byte, short, and char with ASCII representations.
Learn about string and boolean data types in Java: strings are objects in quotes with methods like length and substring, and booleans represent true or false for logic and comparisons.
Name Java variables by starting with a letter and using camel casing. A variable is a memory location that stores a value and has a type.
Declare variables in Java by data type followed by the name and a semicolon; you can declare multiple variables with commas in one line.
Assign data to variables in Java by declaring them or assigning later with the assignment operator, while using literals, char values, booleans, and comments for clear code.
Modify the hello world program to use variables for names and greetings, then print hello Bob or hello Mary. Learn to declare strings, concatenate with plus, and compile.
Explore object-oriented programming by defining classes and creating objects that encapsulate state and behavior, with inheritance and hierarchical structures enabling reusable software like payroll and employee objects.
Define a name class with private first, middle, and last name fields, and public methods to display the full name and initials, using string operations like substring.
Learn to create constructor methods in java by defining public constructors named after the class with f, m, l. Explore overloading and default constructors to instantiate objects with default values.
Learn how to create class objects, instantiate them with constructors, and use a toString method to display an object's state, such as first, middle, and last names.
Learn to implement getter and setter methods for a name class, using getFirst, getMiddle, getLast and setFirst, setMiddle, setLast, plus a setName to access and modify string data members.
Build and test a simple date class in Java by implementing constructors, data members, toString, and getters and setters, then compile and run a basic test program.
Explore the standard Java arithmetic operators—addition, subtraction, multiplication, division, and remainder (modulus)—and see how integer versus floating-point results and data types affect expressions.
Learn how Java follows a specific order of operations for arithmetic, using parentheses to override multiplication, division, addition, and subtraction precedence, and ensuring correct results with doubles when needed.
Declare final variables to create constants that cannot change, such as pi, by assigning a value at declaration. This improves readability and maintenance, and the compiler prevents changing final values.
Explore how to perform advanced math in Java using the MathClass, including absolute value, square root, max and min, exponentiation with pow, and rounding.
Learn how Java handles mixing data types, such as assigning integers to doubles and why doubles to ints risks precision loss. See how chars map to integers via ASCII values.
Translate arithmetic formulas into Java code by managing operator order with parentheses, applying division, subtraction, and addition, using Math.sqrt, the power function, and absolute value for formatting.
Learn to format text and numbers in Java by using the new line (\n) and tab (\t) characters inside strings, manage input and control output with print and println.
Discover how to use printf to set precision and field width for floating point numbers with format strings, including pi to four decimals, and note its C++ roots.
Import the scanner class from java.util, create a scanner object linked to system.in, and read user input with nextInt or nextDouble. Prompt for data, compute sums, and echo results.
Import the scanner class and create a scanner object bound to System.in. Read strings with next for a single word and nextLine for lines, since next stops at a space.
Build a simple Java program that prompts for gift giver name, present, age, and your name using two scanner objects, then prints a form letter by concatenating variables.
Explore relational operators in Java, including equality, greater than, less than, and not equal for strings and numbers, and how they produce boolean outcomes for if statements.
Apply relational expressions with and and or to build boolean conditions, using payroll and password examples to show true or false results in Java.
Discover how the simple if-else statement in Java decides actions by evaluating a relational expression, with curly brace blocks, using real examples like hours worked and overtime calculations.
Master nested if statements in Java, learning how else binds to the nearest if and why brackets and indentation matter, with a grade example.
Explore the if-else-if statement as a clean, structured alternative to nested if statements, testing multiple relational expressions and executing the first true block, with a grades example.
Explore the if-else-if statement in Java with a temperature-based activity predictor, using scanner input to choose swimming, tennis, golf, dancing, or sitting by the fire.
Build a three-try question-and-answer game in Java about the Jeopardy computer Watson. Demonstrate writing the code with a scanner, string equals checks, and nested ifs, plus clear prompts.
Create a simple calculator using if-else if statements to perform +, -, *, and / on two numbers, input via scanners, and handle unrecognized operators.
Learn the while loop in Java, its condition, and how the loop body uses increments to repeat actions and terminate, with hello world and numbers one through ten as examples.
Explore count-controlled while loops by modeling a savings balance over ten years with a loop control variable, relational test, and incremental updates using compound assignment operators.
Learn a condition controlled while loop that runs while a condition is true. Stop input with a sentinel value like negative one to compute an average.
Use a results-controlled while loop to grow a balance from 5,000 toward 100,000 at 2 percent interest, tracking the years needed to reach the target.
Master the for loop as a count controlled construct, initializing a loop control variable, testing it, and updating it, with examples printing hello world, odd numbers, and a sum.
Explore alternative for loop forms and understand their impact on scope and readability while calculating simple interest. Learn about break and continue to control loop flow in future lessons.
Learn to control loop flow with break and continue, using for and while loops, count spaces in strings, and master string methods like length and charAt.
Rewrite the Jeopardy question and answer with a while loop, tracking tries and input, using if/else and break to reveal the right answer, then apply the approach to calculator program.
Create a looping calculator using a while true loop with separate scanner objects for num1, num2, and the operator, handling plus, minus, and asterisk via if statements until Ctrl+C.
Count vowels in a string with a for loop by examining each character via charAt and the string length. Initialize input, sentence, and a vowel counter, then print the total.
Learn how to design and implement methods in Java, and distinguish methods from functions. Explore parameters, return types, static methods, and method calls with arguments.
Define and test two static double methods for Fahrenheit to Celsius and Celsius to Fahrenheit conversions, each with a single double parameter and a return value, keeping main code clean.
Create a Java method with multiple parameters to convert temperatures between Celsius and Fahrenheit using an if-else, with direct multiple returns, tested in main via scanners.
Learn to create predicate methods that return boolean values based on conditions, such as determining even numbers and vowels in a string, using is-prefixed method names and simple tests.
Understand void methods in Java that do not return values, executing code for side effects like printing headings, and how to define and call them with or without parameters.
Demonstrates how Java passes arguments by value, copying values for method use so the original variable remains unchanged, and contrasts this with pass by reference in other languages.
Write and use simple Java methods to compute tips and discounts, practicing method design, static return types, parameters, and matching arguments with user input via a scanner.
Modify the calculator program to use methods for add, subtract, mult, and div, then integrate them in a main program with prompts and error checking.
Learn the basic concepts, tools, and functions that you will need to build fully functional programs with the popular programming language, Java.
Build a strong foundation in Java and object-oriented programming with this tutorial for beginners.
A Powerful Skill at Your Fingertips
Learning the fundamentals of Java puts a powerful and very useful tool at your fingertips. Java is free, easy to learn, has excellent documentation, and is the base for all object-oriented programming languages.
Jobs in java development are plentiful, and being able to learn Java will give you a strong background to more easily pick up other object-oriented languages such as C++, C#, Ruby, and Pascal.
Content and Overview
Suitable for beginning programmers, through this course of 115 lectures and 10 hours of content, you’ll learn all of the Java fundamentals and establish a strong understanding of the concept behind object-oriented programming (OOP). Each chapter closes with exercises, putting your new learned skills into practical use immediately.
Starting with the installation of the Java Development Kit, this course will take you through Java variable types, operators, and how to use them. By creating classes and objects, you’ll a establish a strong understanding of OOP.
With these basics mastered, the course will take you through program flow control by teaching you how to use for loops, while loops, and conditional if-else statements to add complexity and functionality to your programs.
Students completing the course will have the knowledge to create functional and useful Java programs.
Complete with working files and code samples, you’ll be able to work alongside the author as you work through each concept, and will receive a verifiable certificate of completion upon finishing the course.