Here are some basic Java programs:
Hello, world Program in Java!
Factorial
FizzBuzz