Java program that graphs stuff