public class Conversions { public static void main(String[] args) { //int i = 3.14; float f = 6; //String s = 's'; int j = (int)(3.14); float g = 1/5; float h = (float)(1) / 5; System.out.println("f="+f); System.out.println("j="+j); System.out.println("g="+g); System.out.println("h="+h); } } //Copyright 2010-2012 : Evan Golub