Computer Applications

Which of the following is not a valid method of the Scanner class?

  1. next( )
  2. nextInt( )
  3. nextLong( )
  4. nextNumber( )

Input in Java

7 Likes

Answer

nextNumber( )

Reason — nextNumber( ) is not a valid method of the Scanner class.

Answered By

4 Likes


Related Questions