[Solved] Write a function that will sort a string array using Java
First of all a, e and g are variables and not necessarily strings. What you mean is probably “a”, “e” and “g”. Your question is essentially: How do I sort the values in a String[] so that numbers are sorted numerically and prioritized before letters (or words?) which are sorted alphabetically? Your question seems incomplete, … Read more