import  java.io.*;
class Fichero {
  public static void main(String args[]){ 
int i, j ;
char  c;
char  linea[]  = new char [256];	  
String archivo= args[0]; 
 FileInputStream fichero;
try {                                      
         fichero = new FileInputStream(archivo);
}catch (FileNotFoundException e) {
 	System.out.println("archivo no encontrado");
	return;
}	  
  try {
	  do {
		  i = fichero.read();
		  if (i != -1)
		 ++linea[i];
	  } while (i != -1);
  }catch(IOException e){
	  System.out.println("error e/s");
	  return;
  }
	  try {
		  fichero.close();
	  }catch(IOException e){
		  System.out.println("error e/s");
		  return;
	  }
		    for (j=0;j<256;j++) {
		    if (linea[j] > 0)
		    System.out.println("del caracter: " + (char) j + " hay :" + (int)linea[j]);
		    }
	  }
}