import java.util.*;


public class SortedArrayOfStrings {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] myStringArray = new String[n];
		
		for (int i = 0; i < n; i++) {
			myStringArray[i] = new Scanner(System.in).nextLine();
		}

		Arrays.sort(myStringArray);
		for (String sentence : myStringArray) {
			System.out.println(sentence);
		}
	}
}

@@ -14,12 +14,42 @@
 til.
-*;%0D%0A
+Arrays;%0D%0Aimport java.util.Scanner;
 %0D%0A%0D%0A
@@ -69,24 +69,15 @@
 Sort
-ed
+Of
 Array
-OfStrings
  %7B%0D%0A
@@ -119,16 +119,49 @@
 rgs) %7B%0D%0A
+%09%09@SuppressWarnings(%22resource%22)%0D%0A
 %09%09Scanne
@@ -200,78 +200,201 @@
 %0D%0A%09%09
-int n = scan.nextInt();%0D%0A%09%09String%5B%5D myStringArray = new String%5Bn%5D;%0D%0A%09%09
+//ARRAY LENGTH INPUT%0D%0A%09%09System.out.print(%22Array length: %22);%0D%0A%09%09int arrLength = scan.nextInt();%0D%0A%09%09scan.nextLine();%0D%0A%09%09//INIT ARRAY%0D%0A%09%09String%5B%5D words = new String%5BarrLength%5D;%0D%0A%09%09//FILL THE ARRAY
 %0D%0A%09%09
@@ -413,17 +413,25 @@
  0; i %3C 
-n
+arrLength
 ; i++) %7B
@@ -439,68 +439,111 @@
 %0A%09%09%09
-myStringArray%5Bi%5D = new Scanner(System.in).nextLine();%0D%0A%09%09%7D%0D%0A
+System.out.print(%22Type a string: %22);%0D%0A%09%09%09words%5Bi%5D = scan.nextLine();%0D%0A%09%09%7D%0D%0A%09%09//SORT AND PRINT THE ARRAY
 %0D%0A%09%09
@@ -554,29 +554,21 @@
 ys.sort(
-myStringArray
+words
 );%0D%0A%09%09fo
@@ -581,32 +581,20 @@
 ing 
-sentence : myStringArray
+word : words
 ) %7B%0D
@@ -620,16 +620,12 @@
 tln(
-sentence
+word
 );%0D%0A

Update SortedArrayOfStrings.java