
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.
Explore the boolean data type in Java by defining booleans, assigning true or false, and printing results to demonstrate true and false values.
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.
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.
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 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.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
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 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.
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.