Java Calculator made for class