Computer Applications

Which of the following method will accept a string by using scanner object?

  1. next( )
  2. next.read( )
  3. next.String( )
  4. next.char( )

Input in Java

19 Likes

Answer

next( )

Reason — next( ) method will accept a string by using scanner object.

Answered By

11 Likes


Related Questions