In the method legalHex(), at the if(valid), is valid is true and the loop doesn't run, because the condition is false, then nothing is returned. Which is illegal.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Joined: Jul 13, 2011
thank you all for your help. Everything is compiling and running the way it is supposed to, except that decimalValue is supposed to be returning the values set in hexValue (I think - my professor's wording is v difficult to understand), but it is not returning the right numbers. I think the issue is my arithmetic. Anyone have any thoughts? Thanks so much!