The suitable inputs

Report a typo

Consider the following code snippet that uses the Scanner class to read input from the console:

val scanner = Scanner(System.`in`)

val s1 = scanner.nextLine()
val s2 = scanner.nextLine()

You need to determine which inputs will result in both s1 and s2 having non-empty values after execution. Select options that meet this condition.

Select one or more options from the list
___

Create a free account to access the full topic