add a method to this codes to sort the names alphabetically

Can you add a method to this codes to sort the names alphabetically ?

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Array examples Page 5 of 7
х
o C:\Windows\system32\cmd.exe
List of NBanes Unsorted
Cole
Tu
Mohammed
Hagat
Faisal
Abdulrahman
Clay
Marlon
Tyler2
Jon
Jared
Brad
Rich
//One DimArrayString2017
public class OneDimArrayString 2017
{
public static void main(String[] args)
{
String[] listNames = {“Cole”, “Mohammed”,
“Hagat”, “Faisal”,
“Abdulrahman”, “Clay”,
“Marlon”, “Tyler2”,
“Jon”, “Jared”, “Brad”,
“Rich”, “Josh”,
“Abdulaziz”, “Alex”,
“Tylerı”};
//
System.out.println(“List of NBames – Unsorted”);
//
for (int r = 0; r < listNames.length; r++) { System.out.println(listNames[r] + "\n"); }//end for }//emd main }//end class Array examples Page 5 of 7 х o C:\Windows\system32\cmd.exe List of NBanes Unsorted Cole Tu Mohammed Hagat Faisal Abdulrahman Clay Marlon Tyler2 Jon Jared Brad Rich //One DimArrayString2017 public class OneDimArrayString 2017 { public static void main(String[] args) { String[] listNames = {"Cole", "Mohammed", "Hagat", "Faisal", "Abdulrahman", "Clay", "Marlon", "Tyler2", "Jon", "Jared", "Brad", "Rich", "Josh", "Abdulaziz", "Alex", "Tylerı"}; // System.out.println("List of NBames - Unsorted"); // for (int r = 0; r < listNames.length; r++) { System.out.println(listNames[r] + "\n"); }//end for }//emd main }//end class

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER