Doubts on Scanner usage clarified.