
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 64-lesson course built from Bro Code's 12h 00m of YouTube video. 7 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by Bro Code on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Install the JDK and IntelliJ IDEA, create a project, write a main method, and print text to the console.
Declare and initialize variables of type int, double, char, boolean, and String; understand primitive vs reference types.
Import Scanner, read strings, integers, doubles, and booleans from the console, and handle the newline buffer issue.
Use Math.PI, Math.E, Math.pow, sqrt, round, ceil, floor, max, and min; build a hypotenuse calculator.
Use printf with format specifiers (%d, %f, %s, %c, %b), precision (%.2f), flags, and width for aligned output.
Write conditional logic with if, else if, else; compare strings with equals and equalsIgnoreCase; check empty strings.
Use enhanced switch expressions with multiple case labels, yield results, and pattern matching for enums and strings.
Repeat code while a condition holds; validate user input (non-empty name, positive age) and avoid infinite loops.
Execute a block at least once before checking the condition; useful for menus and retry prompts.
Iterate with index variables; nest loops to print grids/matrices; use distinct indices (i, j) for inner loops.
Create static methods with parameters and return types; pass arguments; use method overloading and the DRY principle.
Distinguish local vs class (static) scope; access static members via class name; use static for shared counters and utilities.
Define classes as blueprints with attributes and methods; instantiate objects; access members with the dot operator.
Initialize objects with constructors; overload constructors for flexible creation; use 'this' to resolve shadowing.
Extend a parent class; inherit fields and methods; call super(...) in child constructors; override methods with @Override.
Treat child objects as parent type; decide actual method at runtime; use abstract classes or interfaces for polymorphism.
Make fields private; provide public getX() and setX() methods; add validation logic in setters; use final for immutable fields.
Model has-a relationships: aggregation (independent lifecycles) vs composition (contained object dies with owner).
Use Integer, Double, Boolean, Character to wrap primitives; parse strings; convert types; access MIN_VALUE, MAX_VALUE.
Create resizable lists with type parameters; add, get, set, remove, sort; write generic Box<T> and Product<T,U> classes.
Surround risky code with try; catch specific exceptions (ArithmeticException, InputMismatchException); clean up in finally.
Write text with FileWriter (try-with-resources); read line-by-line with BufferedReader + FileReader; handle parse exceptions.
Store key-value pairs with HashMap<K,V>; put, get, remove, containsKey, keySet; iterate entries; avoid duplicate keys.
Define enum constants; use enhanced switch to return strings; parse user input with try-catch and while-loop validation.
Implement Runnable; override run(); start threads; use join() to wait; set daemon threads; synchronize with sleep.
Combine Scanner, LocalTime, DateTimeFormatter, Runnable, Thread, and audio playback to build a working alarm clock.