Week 1
Hello, Java
Install the JDK, write your first program, and understand what the compiler does.
public class Main {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
// learn java anywhere
Lessons, code examples, and video tutorials built for students in remote areas. This whole page is smaller than a single photo — and videos only load when you press play.
Start Learning →A new lesson every week. Each one fits on a printed page for offline study.
Week 1
Install the JDK, write your first program, and understand what the compiler does.
public class Main {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}Week 2
Primitives, Strings, and why Java makes you declare every type up front.
int score = 95;
double price = 19.99;
String name = "Asha";
boolean passed = score >= 40;Week 3
if/else, for, and while — the building blocks of every program you'll ever write.
for (int i = 1; i <= 10; i++) {
if (i % 2 == 0) {
System.out.println(i + " is even");
}
}Week 4
Model the real world: fields, methods, constructors, and your first object.
class Student {
String name;
int marks;
Student(String name, int marks) {
this.name = name;
this.marks = marks;
}
}Videos cost data, so nothing downloads until you press play.
Programming with Mosh
Bro Code
Fireship
Ten array exercises with solutions, from basic traversal to two-pointer problems.
Classes & Objects is live, with a downloadable worksheet for offline practice.
Pages now load in under a second on 2G. Videos only download when you press play.
