Create main.java

I got the whole thing to work in eclipse.