you need a main class to execute and get user input

add the following under your Assign8_Roberts constructor
void main(String[] args)
{
Scanner scan = new Scanner(System.in);...