Java

Learn and practice Java with this online tutorial and challenges!

Learn Programming with Java
Introduction
Super Simple Formula
Your First Program
Variables, Methods and Parameters
Variables in Programming and Algebra
Math and Comparison Operators
If Statement
While and For Loops
Loopy Thinking
Data Types
Booleans
Logical Operators (and Booleans)
Output and Printing
Printing and Loops
Arrays
Arrays and Loops
Array Loop Practice
What's Next?
Quick Reference
Object-Oriented Programming
Objects
Classes
Inheritance
Programming in Java on Your Computer
Classes and Objects in BlueJ
Trying out Code in BlueJ
The Code for Creating and Using Objects
Source Code and Methods
Accessors and Mutators
Constructor Code
Scope
Inheritance
BlueJ Review
Class Code
Simple Debugging
Interactive Picture
Refactoring Code with Inheritance
Java Language Details
For-Each Loop
Loops and the Do-While Loop
Switch Statement
Jumping around - break, continue, return
Java Assignment Shortcuts
More on Data Types
Type Conversion and Casting
The Java Library
A Library of Classes
The String Class
The String Methods
More String Methods
The ArrayList Notebook
ArrayList Type
ArrayList Methods and Docs
More About ArrayList
Importing Classes
Scanner and I/O
static and main methods
Sharing Your Java Program
Java Loops
Loops
Math with Loops
Printing and Loop Practice
Harder Array Loop Practice
Java API Reference
String
ArrayList
HashMap
Scanner
Generic Programming
Generic Programming
Lists and Sets
Unions and Generics Challenge
Maps
Programming with the Java Collection Framework
Writing Generic Classes and Methods
Games
Crossoff Game
Crossoff Game Again
Connect4
Mancala
Java Explorer
Hello Explorer
My Oh Mine
The Enemy
Enemies!
Archer
Attack and Retreat
Surrounded!
Knights
Knights and Archers
Java Explorer 2D
Hello Explorer
Walls
Walls 2
The Maze
Enemies
16 Enemies
Archers!
Seek out the Enemy
Attack and Retreat
Java Explorer Advanced
Hello Again
Knights
Impossible
Pawns, Archers and Knights!
The Hidden Explorer
Visual Chart
Contact Us
Sign in or email us at [email protected]