
Installing Java and Getting Java Set Up
Compiling and Running a Java Application
Explaining the Hello World Program Code
Println and Print, and Prompt Basics
One Line Comments
Block Comments
Create Java Files, File Extensions and Concatenate Operator
Newline and Escape Character
Various Ways to Execute a Newline
Line Numbers
Lab-01 Address Book Entry
Common Coding Errors and Overview of the Main Function
Create a byte data type and store a number in Java, then print it. Learn about primitive data types and how numbers are stored and displayed.
Create a short variable named MY_SHORT with the value 10. Print 'My short is 10', then compile and run the Java class to verify the output.
Create an integer variable in Java, name the storage area my int, assign it the value 1, then compile and run the class to print the number.
Demonstrate declaring a long data type in Java by assigning the value 1234 with a capital L and printing my long is 1234.
Learn how to declare a float data type, assign a decimal value like 1.123 with an f suffix, and print the result in a simple Java program.
Define a double variable named my double, assign 1.12345 with a trailing d to ensure a double type, then compile, run, and print my double is 1.12345.
Explore the boolean data type in Java by defining booleans, assigning true or false, and printing results to demonstrate true and false values.
Practice a Java lab that prints an integer and a float, compiles and runs the program, and verifies hello world output.
Learn how to add and subtract numbers in Java by creating an int a, adding one to it, compiling and running the program, and printing the result.
Compile and run a Java program from the command prompt, set a to 1, add one to get two, and contrast storing a versus printing the result.
Declare integer variables a, b, and c, assign a = 1 and b = 2, compute a minus b, and store the result in c; then print c as -1.
Compile the program, run it, and observe how the asterisk is used for multiplication. Change a to five, recompile, and see C become 10.
Explore division in Java by dividing 10 by 2, storing the result in c, and printing five, while comparing variable initialization, memory cleanup, and coding style approaches.
Explore a divide by zero error via a two-example compile-and-run demonstration, showing how a=10 and b=0 triggers a runtime division by zero error.
Explain modulus by showing the remainder of 5 divided by 2 using the percent sign, storing it in c, and printing 'c is 1'.
Explore operator precedence in Java by analyzing an example where multiplication before addition yields 52, then using parentheses to achieve 70, and review PEMDAS and Aunt Sally.
Demonstrate the shorthand a += 1 in Java, show how to compile and run, and stress that clear, readable code beats clever shortcuts.
Learn how to use the math sqrt function to compute square roots, store the result in a double, and print it, illustrating built-in code.
Learn how to fix a cannot find symbol date error by importing the date class, creating a date object, and printing the date using the date class.
Create a Java program in lab three that adds integers using the int data type, prints 'total is 30', and practices compiling, running, and debugging with starter code.
Explore strings and characters in Java by creating a character with single quotes, contrasting with strings using double quotes, and printing the result in a simple run-through example.
Create a string variable named a and assign it the text hello world, then print the variable to display hello world.
Create two strings and join them with the plus concatenation operator to form 'Hello World' and 'Good luck', then print the results.
Use the string length function to count characters in a string, including spaces, and store the result in an integer named num, then print the length.
Learn how to use the string length function to count characters, declare integers, and print the computed length in a Java string example.
Construct a string from the alphabet, use substring with start index 2 and end index 4 to extract CD, noting start is inclusive and end is exclusive, and verify.
Learn how to create strings with new string versus literals, showing heap-allocated objects and stack-stored literals, printing 'Jim' and its length of three.
Create a string object and apply toUpperCase and toLowerCase to transform its case, print results, and explore two approaches for storing and using the transformed value while learning through practice.
Identify deprecated Java features and distinguish warnings from errors while creating an integer object with new, converting it to a string with toString, and printing the result.
Demonstrate swapping two strings in Java using a temporary placeholder with three string variables, and print the swapped results A and B.
Navigate to section 5 examples using command prompt paths, then execute a for loop with initialization, condition, and increment to print hello world five times before finishing.
Explore a hands-on demo of an if statement and the equal to operator by compiling and running a simple program that checks if a equals 1 and prints the result.
Compile and run the history file code that uses an if statement and the less than operator to print A is less than 10 when a meets the condition.
Compile and run a program with multiple if statements to show a is less than or equal to 10, greater than or equal to 10, and equal to 10.
Demonstrate the if/else statement by compiling and running code that checks if a equals 1, printing a message when true and executing the else branch when false.
Learn to execute a while statement in Java by printing line numbers 1 through 4 as i increments until i is less than five, then print a final message.
Run a while loop with i <= 5 to print the numbers 1 through 5. Learn how the loop executes five iterations and stops when i reaches five.
Learn how a do-while loop in Java executes at least once, with the condition checked at the bottom, printing i values from 1 to 5 before completion.
Demonstrates executing a switch statement by mapping inputs 1–3 to specific messages and defaulting to an invalid choice for any other input, with compile and run steps.
Explore how the ternary operator works in Java, using a boolean expression, a question mark, and a colon to assign values to C based on A and B.
Identify common equal-to operator errors in Java by distinguishing assignment from comparison in if statements and recognizing when booleans are expected but integers are used.
Write a Java program that uses a for loop to print ten numbers, starting at 1 and ending at 10, with the loop condition i < 11.
Learn to create an array of integers named a, populate it with 10, 20, 30, 40, and print the fourth element (40) using 0-based indexing.
Create an array of integers and access its elements by index. Use a for loop to print each value, such as 10, 20, 30, and 40.
Prints an integer array with a for loop, using the index to access each element and print the values 10, 20, 30, and 40 with a period.
Demonstrate how array access beyond length triggers a runtime out-of-bounds error in a loop. Explain the difference between compile-time and runtime errors with examples from the caption.
Create and access arrays in Java by declaring, creating, initializing, and indexing elements. Compare creating arrays directly and with new, noting heap versus stack memory and the 0-based indexing.
Practice simple array addition by initializing an array with 10 and 20, summing widget[0] and widget[1] to get a total of 30, and printing the result.
Create and initialize a multi-dimensional array with two columns and five rows, then access the element at 0 0 to print 10.
Create and populate a multi-dimensional array, then compile and run to access the element at indices 1, 4, 1, 4 and confirm it equals 500.
Compile and run the multi-dimensional array example. Create and initialize the array, then print the values row by row, including the second column values.
Explore multi-dimensional arrays and nested for loops in Java by constructing and initializing a 5x2 array, then printing each element through nested loops.
Create and access a string array in Java by naming it A, populating it with string values, and printing the fourth element (element three) to demonstrate array indexing.
Create a Java program in lab six that declares, initializes, and prints a ten-element array using a for loop, based on starter code.
Create and call functions inside a Java class, starting from main to run other methods that print hello world, and learn function headers, naming, and the compile‑run workflow.
Compile and run a basic Java program to see how main calls a second function, creates an integer A equal to 1, and prints its value.
See how a Java program uses a main function to call three methods, printing hello from main function, hello from function 2, and hello from function 3, then all done.
Explore how local variables are scoped to their defining function by tracing prints from main, function 2, and function 3, and why a cannot be accessed after function 2 returns.
Shows how the main function creates a with value 1, calls function 2, and passes a. Function 2 receives it as b, renames the parameter, and prints 'number is 1'.
Learn how Java methods return integers by returning a value from a function and declaring an integer return type in the method header, with the main program using that value.
Explore how Java methods pass characters by sending a character value through functions, then printing results to show characters flowing from main to function and back.
Explore how Java method scope governs variable access by showing why a variable declared in main is unavailable in function two during compilation and execution.
Learn how java handles variable scope by comparing local and static variables, and why there are no true global variables in java. See how static enables access across class methods.
Learn to build a three-function Java program using main, function two, and function three to multiply two numbers, take the square root, and print the result.
Learn the java keywords and reserved words, including boolean, case, class, else, for, if, int, return, static, switch, void, while, guided by the Oracle page and java keywords wiki.
Demonstrate pass by value in Java methods by sending a from main to function 2, producing b = 8, while a remains 1 when control returns.
Learn how to pass a single command line argument to a Java program, access it via the args array, and print the first argument using a bare bones main method.
Compile and run a Java program with two command line arguments using the args array, store them in two strings, print hello world with a space, note errors.
Explore how Java handles command line arguments by using the string array args, accessing its length to count args, and printing the result for zero, one, or two arguments.
Explore how to read command line arguments in Java using String args[] and a for loop, iterating over args.length to print each argument.
Convert command line string arguments to integers with String args[] and Integer.parseInt, looping to process items and print results.
Learn how Java handles method overloading with different argument counts by comparing overloaded functions with no arguments and with one argument, and observe the corresponding printouts from main.
Explore Java method overloading with different datatypes of args by tracing calls to overloaded functions for integer and float arguments, plus no-argument variants, yielding distinct print outputs.
Learn how Java handles method overloading with different numbers of arguments by stepping through a main function that calls overloaded methods with zero, one, and two arguments, printing the results.
Create a Java program with overloaded functions that respond to zero or one command line argument, using starter code and if statements to print prompts and results.
Learn to read a single character from the keyboard using System.in.read, handle input/output exceptions with throws, and explore ASCII codes while printing the result to the console.
Cast an ASCII number to a character by converting screen input from one data type to another and printing the resulting character to illustrate casting in Java.
Demonstrate handling input errors with a try-catch block around system.in.read. The lecture shows casting input to a character, printing it, and catching exceptions inside main instead of throwing them.
Explore how Java throws and handles an exception when dividing by zero using a try block and a catch block, with a message 'cannot divide by zero'.
Throwing an arithmetic exception triggers during a divide-by-zero, and a specific catch handles it before a general catch handles other errors, printing cannot divide by zero.
Practice handling Java exceptions by dividing by zero, throwing and catching an arithmetic exception, printing stack traces, and using finally to run code after errors.
Trace how a divide-by-zero error propagates from function two to main, then the catch block handles the exception and prints its message.
Learn how to use a string buffer and a while loop with system.in.read to build a name from user input and print a hello message, with simple exception handling.
Learn to read an integer input from the command line in Java using a scanner with System.in and next integer, and observe an input mismatch exception for non-numeric input.
Learn to read integers with a scanner using nextInt inside a try-catch, handle input mismatch exceptions, and print a user-friendly error along with the exception details.
Learn how to read user input in Java using a scanner and nextLine, store the answer, and concatenate it to prompts while testing with yes or no.
Convert user input to lowercase with toLowerCase, then compare with equals to validate yes or no using if-else and switch for valid and invalid choice.
Learn to read user input from the command line in Java by chaining an input stream reader with a buffered reader and using readLine to capture and print data.
Use system.console to get information from the command line, then compile, run, and print the entered first name with system.out.println.
Explore input handling in java by building a looped user prompts app that validates yes/no input, trims whitespace, handles case-insensitive responses, and supports quitting with q or quit.
Learn how to create an object with new, instantiate it in memory, and run its function to print hello world.
Learn how to create an object with a do nothing constructor in Java, where the constructor runs automatically when the object is instantiated and the program prints hello world.
Create an object to automatically run its constructor, which initializes the text string with hello world and then prints the stored text.
Instantiate an object of the my class type, pass the value 7 to its constructor, which initializes an integer field, and the program prints Hello world and number is 7.
Learn to create and instantiate an object, then call getClass and getName to retrieve the class name, showing how variables and methods live inside the object.
Create and instantiate an object, attach it to a handle, and use this to refer to the current object's methods, variables, and constructor, printing the number and class name.
Create multiple objects from the same class by instantiating two objects with distinct constructor values, then invoke their methods to print their numbers and the class name.
Learn how to create multiple objects from the same class and overload constructors to accept one or two numbers, choosing the right constructor by argument count.
Set the object's reference to null to indicate it's no longer used, then rely on the Java garbage collector to reclaim memory automatically.
Create and use multiple objects, then compile and run the program to print the output. See how Java's garbage collector handles unused objects, though you normally don't invoke it.
Explore inheritance in Java by using the extends keyword to connect a superclass (parent class) and a subclass (child class), observe constructors and inherited methods across objects.
Store a child object in a parent handle by using inheritance, creating a parent-typed variable, constructing the child object, and invoking inherited functions.
Explore creating multiple objects with inheritance in java by defining classes, extending a parent, calling super constructors, and debugging with the compiler to understand execution flow.
This course is about a computer programming language called Java.
This course will get you started writing code with the Java Computer Programming Language.
This course will show you how to install Java, and create and run common Java programs.
This course is for beginners. We'll move very very slowly and cover the most "basic" information. We'll mainly cover the mechanics of writing and understanding Java code, with very little talk on Java theory.
We'll cover simple Java programs in ten sections, with each sections containing about ten short videos. The Java program files are available for download as text files (Notepad files) along side each video to save you the hassle of typing out every program.
At the end of each part, there is an optional "Hands On Lab." These labs help you learn the material we just covered in the previous section. Try to complete the lab programs on your own. This is very important to build your programming skills. Then check my completed example lab program as a reference. Here, I walk through completing the Labs with you. When just starting out learning to code, labs are tough, and we all need help getting started.
If you have any trouble with the course, I'm am usually online to answer your questions. If not, I can usually get back to you very soon, usually within hours. Please contact me through the Udemy's message system.