import java.util.Arrays;
public class Main
{
public void sortIntArray()
{
int[] arrayToSort = new int[] {48, 5, 89, 80, 81, 23, 45, 16, 2};
Arrays.sort(arrayToSort);
for (int i = 0; i <>
System.out.println(arrayToSort[i]);
}
public void sortStringArray() {
String[] arrayToSort = new String[] {"Oscar", "Charlie", "Ryan", "Adam", "David"};
Arrays.sort(arrayToSort);
for (int i = 0; i <>
System.out.println(arrayToSort[i]);
}
public static void main(String[] args)
{
Main main = new Main();
main.sortIntArray();
main.sortStringArray();
}
}