[java] Finding Number of Cores in Java