maths project with java