public static void print1(String file)
    throws IOException{
    InputStream in = new FileInputStream(file);
    int b;
    int i=1;
    while((b=in.read())!=-1){
      System.out.print(Integer.toHexString(b)+" ");
      }
    in.close();
  }
} public static void print(String file)
            throws IOException {
        InputStream in = new FileInputStream(file);
        while (in.read() != -1) {
            System.out.print(Integer.toHexString(in.read()) + " ");
        }
        in.close();
    }