public static void main(String args[]) throws Exception {
        String[] args1 = "13 12 12 14".split(" ");
        List<FutureTask<Integer>> listFuture = new ArrayList<FutureTask<Integer>>(
            Arrays.asList(new FutureTask<Integer>(new WordLengthCallable(args1[0])),
                    new FutureTask<Integer>(new WordLengthCallable(args1[1])),
                    new FutureTask<Integer>(new WordLengthCallable(args1[2])),
                    new FutureTask<Integer>(new WordLengthCallable(args1[3])))
        );
        int sum = 0;
        for (FutureTask<Integer> future : listFuture) {
            new Thread(future).start();
        }
        for (FutureTask<Integer> future : listFuture) {
            future.get().intValue();
        }
        System.out.printf("The sum of lengths is %s%n", sum);
        System.exit(sum);
    }