Scanner class example