The first line uses the Console class to output a line of text, and the second one reads a line of text from the console.
Ulayini wokuqala usebenzisa i-Console class ukuze ubhale umusho esifisa ukuthi ubhaleke, bese kuthi umusho wesibili ufunde lowo musho kuyi-console.