import java.io.* ;
public class invert
{
public static void main(String args[]){
int i,j ;
String stringArray[] = {"about","aband","doing","can't","heree","myine","going"};
int k = stringArray.length;
System.out.println("Resource string array is : ");
for (i = 0 ; i < k ; i ++)
System.out.print(stringArray[i] + " ");
System.out.println("\n*********************");
for (i = 0 ; i < k-1 ; k ++)
{ for(j = i + 1 ; j < k ; j ++)
{
if (stringArray[i].compareTo(stringArray[j]) < 0)
{
String str = stringArray[i];
stringArray[i] = stringArray[j];
stringArray[j] = str;
}
}
}
System.out.println("Result after sorting is ");
for(i = 0 ; i < k ; i ++)
System.out.print(stringArray[i] + " " );
}
}