


Pedro, a Queens College graduate, introduces Java for noobs, grounded in computer science, a beginner-friendly course that covers Java and JavaScript basics, guiding absolute beginners toward confidence in programming.
Download and install the JDK and Eclipse IDE, set up a workspace, and create your first Java project to print hello world in the console.
Learn about printing statements onto the console. System.out.println()as well as the System.out.print() statements. println simpley takes an argument prints out onto the console with a new line. The print statement takes an argument prints it onto the console.
Learn how to declare variables in Java using primitive data types like byte, short, int, long for numbers, and float, double, boolean, and char; see assignment and printing.
Learn how typecasting makes one behave like a different type, using examples with integer division, doubles, and casting 97 to a char to reveal ASCII values.
Arithmetic Operators / Mathematical Operators
Basic Mathematical Operations such as +, - , *, /, %
Explore how the if statement enables basic decision making by executing code when an expression evaluates to true or false. Learn to print single or multiple statements using blocks.
Explore conditionals with if, else, and else if, learn how false conditions trigger else blocks, and verify even numbers using the modulus operator.
Explore nested conditionals in Java by using if, else if, and else, including testing odd or even with modulus, checking numbers greater than 10, and nesting if statements with brackets.
Learn how to use the ternary operator in Java as a shorthand for if-else, evaluating A < B to assign the minimum value and print the result.
Explore the switch statement as an alternative to if-else conditionals, using cases, a default, and break to control flow, with examples mapping inputs to months.
Explore post-increment and post-decrement, and pre-increment and pre-decrement in Java, using simple print examples to show how values change before or after execution.
Master for loops in Java to repeat code, print hello multiple times, and control iteration with i from 0 to 4 using a condition, increment, and optional braces.
Learn to translate a for loop into a while loop by matching initialization, condition, and incrementation. Explore when to use each for readability, including reading from a file.
Explore the do while loop, which executes at least once before checking its condition, and compare it to for and while loops with practical examples.
Master nested for loops by using an outer loop for rows and an inner loop for columns to form a three by three grid with print statements.
Learn how break and continue work inside for and while loops. See how break exits the loop and continue skips the rest of the block to the next iteration.
Understand arrays as a data structure that stores multiple values with zero-based indexes, using length to determine size, and learn to declare, assign, and loop through elements to print.
Learn to declare and use 2d arrays in Java, including rows, columns, and arrays of arrays. Use nested loops to access elements and print rows with dynamic lengths.
Learn how methods in Java create reusable blocks of code callable with arguments. See the main method as the entry point and how to return, assign, and print results.
Learn how recursion uses a base case to exit, by computing factorials with a self-referential method in Java, and see how each call stacks to reach 24 for four factorial.
Learn how to get user input from the keyboard in Java using the Scanner class and System.in, prompting for a name and reading strings with nextLine and numbers with next.
Learn to read input from a text file in Java using the Scanner class. Use a try and catch block, and loop with hasNextLine and nextLine, then close the scanner.
Practice problems cover unit conversions (km to miles, yards to miles) and basic geometry (rectangle and square perimeter and area), with Celsius to Fahrenheit formulas.
Learn solutions to Java practice problems, converting kilometers to miles and yards to miles, and temperatures between Celsius and Fahrenheit, then compute rectangle and square perimeter and area using doubles.
Learn to declare arrays in Java, implement methods, and print arrays, evens, odds, and sums of even and odd values and indices using loops and the modulus operator.
Practice problems help you master nested loops by printing 5x5 shapes to the console, including squares and triangles, using nested for loops with stars and spaces.
explains a java tic tac toe solution with a 3x3 board, scanner input, move validation, winner checks, turn toggling, and reset on ties.
Explore Java classes and constructors, including default constructors and no-argument constructors, and learn how to instantiate objects using the new keyword.
learn how a child class overrides the parent class's toString method, with examples using Animal, Dog, and Cat, and see how overriding changes the print output.
Explore abstract classes and abstract methods in java, learn why you cannot instantiate an abstract class like animal, and how child classes must implement abstract methods such as walk.
Learn how to create a Java interface named animal, define public static final fields and public methods, and implement it in dog and cat to form a contract.
Create your first gui application in Java using a JFrame by setting the title, size, visibility, and close behavior, then run to view a fixed 500 by 500 window.
Explore how to use a content pane, apply border layout, and add JButtons to positions like east, west, north, south, and center in a Java Swing frame.
Explore event driven programming by implementing an action listener to respond to button clicks, handle action performed events, and print a message when the button is clicked.
Learn how anonymous classes declare and instantiate a class at the same time to implement interfaces, reducing the amount of code required when adding action listeners.
Switch the content pane to a flow layout, adjust alignment and gaps, and observe how buttons wrap and reflow as the window resizes.
Explore a tic tac toe GUI overview as we preview building the game from scratch in Java for Noobs, showing game flow, winners, and starting a new game.
Learn how to build a Java Swing tic tac toe game by setting up a 3x3 grid in a JFrame, managing current player, and detecting a winner with a dialog.
In tic tac toe part 3, implement a menu bar with new game and quit items and reset the board, clearing the 3x3 buttons and game state.
Initialize the 3x3 tic tac toe board with a nested for loop and J buttons, then attach an action listener to validate moves and toggle players.
Wrap the tic tac toe UI in SwingUtilities.invokeLater to load the menu bar correctly. Learn how the event dispatcher thread schedules UI updates to keep the board responsive.
In this course you will learn how to program. Students are assumed they have never programmed before and are taught step by step on how to program. This course is taught by an instructor who has over 200 5 star reviews on Udemy. The skills learned here can be seen as a stepping stone to eventually become a software developer with the basics being covered in this course.
Topics include the following