Here you can find the source of toFloat(int majorVersion, int minorVersion)
public static float toFloat(int majorVersion, int minorVersion)
//package com.java2s; //License from project: Apache License public class Main { public static float toFloat(int majorVersion, int minorVersion) { return Float.parseFloat(majorVersion + "." + minorVersion); }//from w w w. j a va 2 s . com }