Zco inputs

i qualified for the INOI via the zio but when i decided to practice for the inoi i figured that i do not know how to take the inputs . can someone write the JAVA code for taking in multiple line inputs and explain how it works?please.