Program that tests basic java methods