How does java Scanner works?

ok so im a complete noob in java or programing in general i just started learningso i followed some youtube tutorials and the Scanner subject confused

ok so i'm a complete noob in java or programing in general i just started learning
so i followed some youtube tutorials and the Scanner subject confused me so here is what i know
we need to import the scanner before we can use it ,
now we have to declare a variable type Scanner like Scanner scr;
now here where i get confused
Scanner scr = new Scanner (system.in); wtf is this ??
what is a new scanner and what system in means
please if you are knowledgeable about the subject explain to me how to get the inputs working using this method thx.

or:ok so i'm a complete noob in java or programing in general i just started learningso i followed some youtube tutorials and the Scanner subject confused me so here is what i knowwe need to import the scanner before we can use it ,now we have to declare a variable type Scanner like Scanner scr;now here where i get confused Scanner scr = new Scanner (system.in); wtf is this ??what is a new scanner and what system in means please if you are knowledgeable about the subject explain to me how to get the inputs working using this method thx.

Tags:work,learning,tutorial,