for (int i = 0; i < args.length; i++) {
// Calculate the digest
File f = new File(args[i]);
ReturnDigest dr = new ReturnDigest(f);
dr.start();
// Now print the result
StringBuffer result = new StringBuffer(f.toString());
result.append(": ");
byte[] digest = dr.getDigest();
for (int j = 0; j < digest.length; j++) {
result.append(digest[j] + " ");
}
System.out.println(result);
}