My program asks for a value then returns a hailstone sequence for each value 1 to n and counts how many numbers are contained in each sequence, then returns the longest sequence and what number had it. I am having a problem with the return of int nextNumberInSequence ()
I need it to return two values, which I can then output in my main function. I missed that class, and now am rather lost.I can split the function that gives me the number with longest sequence and the sequence lenght into two but all I can think of is copying the function and having each return the needed values.