Language: Java

import java.util.Scanner;
??
????????public class Main{
????????public static void main(String[] args) {
????????Scanner sc = new Scanner(System.in);
????????int[] chars=new int[256];
????????while(sc.hasNextLine())
????????{
????????????????String line=sc.nextLine();
????????????????for(int i=0;i<line.length();i++)
????????????????{
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
????????????????????????chars[ch]++;
????????????????}}
????????for(char ch='a';ch<='z';ch++)
????????{
????????????????System.out.println(ch+" : "+chars[ch]);
????????}
??
}
??
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:4: error: illegal start of type
????????public static void main(String[] args) {
^
Main.java:5: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
^
Main.java:5: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
 ^
Main.java:5: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
  ^
Main.java:5: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
   ^
Main.java:5: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
    ^
Main.java:5: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
     ^
Main.java:5: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
      ^
Main.java:5: error: illegal start of expression
????????Scanner sc = new Scanner(System.in);
       ^
Main.java:5: error: : expected
????????Scanner sc = new Scanner(System.in);
               ^
Main.java:5: error: : expected
????????Scanner sc = new Scanner(System.in);
                                           ^
Main.java:6: error: illegal start of expression
????????int[] chars=new int[256];
^
Main.java:6: error: illegal start of expression
????????int[] chars=new int[256];
 ^
Main.java:6: error: illegal start of expression
????????int[] chars=new int[256];
  ^
Main.java:6: error: illegal start of expression
????????int[] chars=new int[256];
   ^
Main.java:6: error: illegal start of expression
????????int[] chars=new int[256];
    ^
Main.java:6: error: illegal start of expression
????????int[] chars=new int[256];
     ^
Main.java:6: error: illegal start of expression
????????int[] chars=new int[256];
      ^
Main.java:6: error: illegal start of expression
????????int[] chars=new int[256];
       ^
Main.java:6: error: '.class' expected
????????int[] chars=new int[256];
              ^
Main.java:6: error: : expected
????????int[] chars=new int[256];
                                ^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
 ^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
  ^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
   ^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
    ^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
     ^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
      ^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
       ^
Main.java:7: error: illegal start of expression
????????while(sc.hasNextLine())
        ^
Main.java:8: error: illegal start of expression
????????{
^
Main.java:8: error: illegal start of expression
????????{
 ^
Main.java:8: error: illegal start of expression
????????{
  ^
Main.java:8: error: illegal start of expression
????????{
   ^
Main.java:8: error: illegal start of expression
????????{
    ^
Main.java:8: error: illegal start of expression
????????{
     ^
Main.java:8: error: illegal start of expression
????????{
      ^
Main.java:8: error: illegal start of expression
????????{
       ^
Main.java:8: error: illegal start of expression
????????{
        ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
 ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
  ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
   ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
    ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
     ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
      ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
       ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
        ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
         ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
          ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
           ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
            ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
             ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
              ^
Main.java:9: error: illegal start of expression
????????????????String line=sc.nextLine();
               ^
Main.java:9: error: : expected
????????????????String line=sc.nextLine();
                      ^
Main.java:9: error: : expected
????????????????String line=sc.nextLine();
                                         ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
 ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
  ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
   ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
    ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
     ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
      ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
       ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
        ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
         ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
          ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
           ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
            ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
             ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
              ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
               ^
Main.java:10: error: illegal start of expression
????????????????for(int i=0;i<line.length();i++)
                ^
Main.java:11: error: illegal start of expression
????????????????{
^
Main.java:11: error: illegal start of expression
????????????????{
 ^
Main.java:11: error: illegal start of expression
????????????????{
  ^
Main.java:11: error: illegal start of expression
????????????????{
   ^
Main.java:11: error: illegal start of expression
????????????????{
    ^
Main.java:11: error: illegal start of expression
????????????????{
     ^
Main.java:11: error: illegal start of expression
????????????????{
      ^
Main.java:11: error: illegal start of expression
????????????????{
       ^
Main.java:11: error: illegal start of expression
????????????????{
        ^
Main.java:11: error: illegal start of expression
????????????????{
         ^
Main.java:11: error: illegal start of expression
????????????????{
          ^
Main.java:11: error: illegal start of expression
????????????????{
           ^
Main.java:11: error: illegal start of expression
????????????????{
            ^
Main.java:11: error: illegal start of expression
????????????????{
             ^
Main.java:11: error: illegal start of expression
????????????????{
              ^
Main.java:11: error: illegal start of expression
????????????????{
               ^
Main.java:11: error: illegal start of expression
????????????????{
                ^
Main.java:12: error: illegal start of expression
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
^
Main.java:12: error: illegal start of expression
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
 ^
Main.java:12: error: illegal start of expression
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
  ^
Main.java:12: error: illegal start of expression
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
   ^
Main.java:12: error: illegal start of expression
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
    ^
Main.java:12: error: illegal start of expression
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
     ^
Main.java:12: error: illegal start of expression
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
      ^
Main.java:12: error: illegal start of expression
????????????????????????char ch=Character.toLowerCase(line.charAt(i));
       ^
100 errors
only showing the first 100 errors, of 208 total; use -Xmaxerrs if you would like to see more