(JAVA programming language) How is nextInt() declared? Discuss its use.
APPROPRIATE ANSWER WILL BE MARKED BRAINLIEST ALONG WITH 5 STAR AND THANKS.
Answers
Answered by
1
Answer:
nextInt() The nextInt() method of a Scanner object reads in a string of digits (characters) and converts them into an int type. The Scanner object reads the characters one by one until it has collected those that are used for one integer. Then it converts them into a 32-bit numeric value.
Explanation:
Mark se Brainliest
Similar questions
Computer Science,
25 days ago
Math,
25 days ago
Political Science,
1 month ago
English,
9 months ago