Online Java Compiler By
JavaTpoint.com
public class IntegerFloatValueExample3 { public static void main(String[] args) { int x = 3; int y = 2; Float f = new Float(x); float result = f.floatValue()/y; System.out.println("Value is = "+result); } }
Output