You may notice that you have a scanner implemented in your forloop, but nothing ever scans in to fill it. In other words, "numguess" is null, so doesn't meet the requirements of any of your if...