method that accepts a string without any space is _______ 1) next() 2) nextLine() 3) nextint() 4) none of above
Answers
Answered by
16
Method that accepts a string without any space is nextLine()
Answered by
2
nextLine().
Explanation:
It has a scannar class that scans from the modern role till it searches a line separator delimiter.
The technique returns the string from the modern role to the quit of the line.
The subsequent() can study the enter simplest until the area.
The nextLine() reads enter inclusive of area among the words.
Once the enter is study, nextLine() positions the cursor withinside the subsequent line.
the nextLine() technique usually returns a String.
The String is transformed into an int.
The Integer class is a unique elegance known as a wrapper elegance. It recollects a primitive type.
Similar questions