Scanner in utility package

Please explain the code line
Scanner scn= new Scanner(System.in);
int n= scn.nextInt();