Language: Java

public class Main {
2.    public static void main(String[] args) {
3.        int value = Integer.parseInt(readLine(255));
4.        System.out.printf("%f",(2*Math.PI*value));
5.    }
6. 
7.    public static  String readLine(int maxLen){
8.        int[] holder = new int[maxLen];
9.        int counter =0, reader =1;
10. 
11.        try{
12.            while(counter < maxLen){
13.                reader = System.in.read();
14.                if(reader <0 || (reader =='\n'))break;
15.                holder[counter++] = reader;
16.            }
17.        }catch(Exception ex){
18.            return (null);
19.        }
20. 
21.        if(counter ==0 && reader <0)return (null);
22.        return new String(holder,0,counter);
23.    }
24.}


Compiler output:
Main.java:2: error: illegal start of type
2.    public static void main(String[] args) {
^
Main.java:3: error: not a statement
3.        int value = Integer.parseInt(readLine(255));
^
Main.java:3: error: ';' expected
3.        int value = Integer.parseInt(readLine(255));
  ^
Main.java:4: error: not a statement
4.        System.out.printf("%f",(2*Math.PI*value));
^
Main.java:4: error: ';' expected
4.        System.out.printf("%f",(2*Math.PI*value));
  ^
Main.java:5: error: not a statement
5.    }
^
Main.java:5: error: ';' expected
5.    }
  ^
Main.java:6: error: illegal start of type
6. 
^
Main.java:8: error: not a statement
8.        int[] holder = new int[maxLen];
^
Main.java:8: error: ';' expected
8.        int[] holder = new int[maxLen];
  ^
Main.java:9: error: not a statement
9.        int counter =0, reader =1;
^
Main.java:9: error: ';' expected
9.        int counter =0, reader =1;
  ^
Main.java:10: error: not a statement
10. 
^
Main.java:10: error: ';' expected
10. 
   ^
Main.java:12: error: not a statement
12.            while(counter < maxLen){
^
Main.java:12: error: ';' expected
12.            while(counter < maxLen){
   ^
Main.java:13: error: not a statement
13.                reader = System.in.read();
^
Main.java:13: error: ';' expected
13.                reader = System.in.read();
   ^
Main.java:14: error: not a statement
14.                if(reader <0 || (reader =='\n'))break;
^
Main.java:14: error: ';' expected
14.                if(reader <0 || (reader =='\n'))break;
   ^
Main.java:15: error: not a statement
15.                holder[counter++] = reader;
^
Main.java:15: error: ';' expected
15.                holder[counter++] = reader;
   ^
Main.java:16: error: not a statement
16.            }
^
Main.java:16: error: ';' expected
16.            }
   ^
Main.java:17: error: not a statement
17.        }catch(Exception ex){
^
Main.java:17: error: ';' expected
17.        }catch(Exception ex){
   ^
Main.java:18: error: not a statement
18.            return (null);
^
Main.java:18: error: ';' expected
18.            return (null);
   ^
Main.java:19: error: not a statement
19.        }
^
Main.java:19: error: ';' expected
19.        }
   ^
Main.java:20: error: not a statement
20. 
^
Main.java:20: error: ';' expected
20. 
   ^
Main.java:22: error: not a statement
22.        return new String(holder,0,counter);
^
Main.java:22: error: ';' expected
22.        return new String(holder,0,counter);
   ^
Main.java:23: error: not a statement
23.    }
^
Main.java:23: error: ';' expected
23.    }
   ^
Main.java:24: error: illegal start of type
24.}
^
37 errors