What is advantage of the function?
next.charAt()in java programming
Answers
Answered by
0
Answer:
Use of functions enhances the readability of a program. A big code is always difficult to read. Breaking the code in smaller Functions keeps the program organized, easy to understand and makes it reusable
Scanner and nextChar() in Java
To read a char, we use next(). charAt(0). next() function returns the next token/word in the input as a string and charAt(0) function returns the first character in that string
Answered by
0
Answer:
Avoid repetition of codes. Increases program readability. Divide a complex problem into simpler ones. Reduces chances of error. Modifying a program becomes easier by using function.
Explanation:
hope this will help you
Similar questions