Юлия Деревенская
Помогите разобраться Java
Может кто построчно объяснить что тут происходит? Спасибо
1. static String[] tarr = {"Now", "is", "the", "Time", "for", "all",
2, "good", "men", "to", "come", "to", "the",
3. "aid", "of", "their", "country" };
4. public static void main(String[] args) {
5. for (int j = 0; j < tarr.length; j++) {
6. for (int i = j + 1; i < tarr.length; i++) {
7. if (tarr[i].compareTo(tarr[j]) < 0) {
8. String t = tarr[j];
9. tarr[j] = tarr[i];
10. tarr[i] = t;
}
}
System.out.print(tarr[j]+" ");
}
}