Ascending and Descending In Java
public class AscendingNama {
public AscendingNama() {
}
public static void main(String[] args) {
String temp;
String nama[]={"Hery","Irawan","Andika","Aldi","Sasha" };
System.out.println("Before Ascending");
for(int i=0;i<5;i++){
System.out.println(nama[i]);
}