1(iii)
The Scanner class method used to accept words with space:
- (a)next()
- (b)nextLine()
- (c)Next()
- (d)nextString()
Show SolutionHide Solution↓
nextLine()
Reason — nextLine() reads the input till the end of line so it can read a full sentence including spaces.