package org.parabot.environment.api.utils;

/**
 * @author JKetelaar
 */
public class JavaUtil {
    public static double JAVA_VERSION = getVersion();

    static double getVersion () {
        String version = System.getProperty("java.version");
        int pos = version.indexOf('.');
        pos = version.indexOf('.', pos+1);
        return Double.parseDouble (version.substring (0, pos));
    }
}
