Amdocs interview question

how many ways to read java console input and write two ways program