Im writing an interactive program for school right now and I ran into a problem. I simplified the code here, to illustrate it:
public class exams { publi