java scanner hasnext method exle