โ˜• Java from Beginner โ†’ Hero

Interactive lessons + live code runner (simulated). Click "Run" to see output.

๐Ÿ“˜ Lesson 1: Hello World

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, Java learner!");
    }
}

๐Ÿ“˜ Lesson 2: Variables & Data Types

int age = 25;
double price = 19.99;
String name = "Alex";
System.out.println(name + " is " + age + " years old.");

๐Ÿ“˜ Lesson 3: If-Else (Decision Making)

int score = 85;
if (score >= 70) {
    System.out.println("Pass!");
} else {
    System.out.println("Try again.");
}

๐Ÿ“˜ Lesson 4: Loops (For)

for (int i = 1; i <= 3; i++) {
    System.out.println("Count: " + i);
}

๐Ÿงช Try your own Java code (simulated)


โšก Real learning? This is a fast prototype. To actually compile Java, you'd need backend or WebAssembly (e.g., JDoodle API). I can generate a full interactive environment with real compiler within 2โ€“3 hours of dev time.