I am trying to get the addition done on the following method defined in my code, but after submitting the user input the program just return an exception instead of addition