how to take multiple line string input in java using scanner code example Example: how to take multiple string input in java using scanner public String nextLine()