SyntaxFix
Write A Post
Hire A Developer
Questions
Simply do the following before printing the array:-
Arrays.sort(array);
Note:- you will have to import the arrays class by saying:-
import java.util.Arrays;