1 Scanner scanner = new Scanner( System.in );
2 int n = scanner.nextInt();
3 int[] a=new int[ n + 1 ];
4 for( int k = 1; k <= n; k ++ ){
5 a[ k ] = scanner.nextInt();
6 }
7 Arrays.sort( a );
8 for( int k = 1; k <= n; k ++ ){
9 System.out.print( a[k] + " " );
10 }
1public class Test {
2 public static void main(String args[]) {
3 String string = args[0];
4 System.out.println("last character: " +
5 string.substring(string.length() - 1));
6 }
7}
8