Quantcast
Channel: BlogoSfera » need
Viewing all articles
Browse latest Browse all 40

Im trying to sort an Array Alphabetically. When i run the program it never swaps the names. What do i need to do to fix my program?

$
0
0

This is my constructor of the user importing a list of their choosing of the amount of names and then it is supposed to sort the names alphabetically, but it doesn’t. import java.util.ArrayList; import java.util.Scanner; public class MyArrayList { public ArrayList<String> getFilledList() { ArrayList<String> array = new ArrayList<String>(); Scanner name = new Scanner(System.in); System.out.println("How man […]

The post Im trying to sort an Array Alphabetically. When i run the program it never swaps the names. What do i need to do to fix my program? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 40

Trending Articles