CheckSum c = new CheckSum();
int sum = 0;
if (av.length == 0)
sum = c.process(new BufferedReader(
new InputStreamReader(System.in)));
else for (int i=0; i<av.length; i++)
try {
sum += c.process(new BufferedReader(new FileReader(av[i])));
} catch (FileNotFoundException e) {
System.err.println(e);
}
System.out.println(sum);