how to check for multiple variables within scanner input java code example Example: how to take multiple string input in java using scanner public String nextLine()