Computer Applications
Which of the following method will accept a string by using scanner object?
- next( )
- next.read( )
- next.String( )
- 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
Given: int p=55/0;
Name the type of error in the given statement:- Syntax
- Logical
- Runtime
- Executional
The …………… method will accept a character using stream class.
- in.read( )
- (char)(in.read( ))
- in.readline( )
- character.read( )
Which of the following is a method of Java Scanner class?
- nextline( )
- nextLine( )
- Nextline( )
- NextLine( )
Fill in the blanks:
The package needed to import StreamReader class is _________