Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class main{
 public static void main(String[] args){
  BufferedReader = reader = new BufferedReader(new InputStreamReader(System.in));
  int len = Integer.parseInt(reader.readLine);
  int[] arr = new int[len];

String arrStr = readLine();
StringTokenizer token = new StringTokenizer(arrStr," ");
int i = 0;
while(token.hasMoreElements()){
 arr[i++] = Integer.parseInt((String)token.nextElement());
}
reader.close();
 for(int i = 1;i<A.length;i++){
		int j = i-1;
		int key = A[i];
		while(j >= 0 && A[j] > key){
			
			//入れ替え

			A[j] = A[j + 1];
			A[j+1] = A[j];
			j --;
		}
		
		//結果の出力
		for(int i =0;i<A.length-1;i++){
			System.out.print(A[i]+" ");
		}System.out.print(A[A.length-1]);
	 }

 }
}

Compiler output:
Main.java:8: error: cannot find symbol
  BufferedReader = reader = new BufferedReader(new InputStreamReader(System.in));
  ^
  symbol:   variable BufferedReader
  location: class main
Main.java:8: error: cannot find symbol
  BufferedReader = reader = new BufferedReader(new InputStreamReader(System.in));
                   ^
  symbol:   variable reader
  location: class main
Main.java:9: error: cannot find symbol
  int len = Integer.parseInt(reader.readLine);
                             ^
  symbol:   variable reader
  location: class main
Main.java:12: error: cannot find symbol
String arrStr = readLine();
                ^
  symbol:   method readLine()
  location: class main
Main.java:18: error: cannot find symbol
reader.close();
^
  symbol:   variable reader
  location: class main
Main.java:19: error: variable i is already defined in method main(String[])
 for(int i = 1;i<A.length;i++){
         ^
Main.java:19: error: cannot find symbol
 for(int i = 1;i<A.length;i++){
                 ^
  symbol:   variable A
  location: class main
Main.java:21: error: cannot find symbol
		int key = A[i];
		          ^
  symbol:   variable A
  location: class main
Main.java:22: error: cannot find symbol
		while(j >= 0 && A[j] > key){
		                ^
  symbol:   variable A
  location: class main
Main.java:26: error: cannot find symbol
			A[j] = A[j + 1];
			^
  symbol:   variable A
  location: class main
Main.java:26: error: cannot find symbol
			A[j] = A[j + 1];
			       ^
  symbol:   variable A
  location: class main
Main.java:27: error: cannot find symbol
			A[j+1] = A[j];
			^
  symbol:   variable A
  location: class main
Main.java:27: error: cannot find symbol
			A[j+1] = A[j];
			         ^
  symbol:   variable A
  location: class main
Main.java:32: error: variable i is already defined in method main(String[])
		for(int i =0;i<A.length-1;i++){
		        ^
Main.java:32: error: cannot find symbol
		for(int i =0;i<A.length-1;i++){
		               ^
  symbol:   variable A
  location: class main
Main.java:33: error: cannot find symbol
			System.out.print(A[i]+" ");
			                 ^
  symbol:   variable A
  location: class main
Main.java:34: error: cannot find symbol
		}System.out.print(A[A.length-1]);
		                  ^
  symbol:   variable A
  location: class main
Main.java:34: error: cannot find symbol
		}System.out.print(A[A.length-1]);
		                    ^
  symbol:   variable A
  location: class main
18 errors