void (long l, double d, float f) { byte b; int i; char ch; i = (<warning descr="Cast from 'float' to 'int' may result in loss of precision">int</warning>) f; System.out.println("i = " + i); ch = (<warning descr="Cast from 'double' to 'char' may result in loss of precision">char</warning>) d; System.out.println("ch = " + ch); i = (<warning descr="Cast from 'double' to 'int' may result in loss of precision">int</warning>) d; System.out.println("i = " + i); i = (<warning descr="Cast from 'long' to 'int' may result in loss of precision">int</warning>) l; System.out.println("i = " + i); b = (<warning descr="Cast from 'long' to 'byte' may result in loss of precision">byte</warning>) l; System.out.println("b = " + b); l = (<warning descr="Cast from 'double' to 'long' may result in loss of precision">long</warning>) d; System.out.println("l = " + l); l = (<warning descr="Cast from 'float' to 'long' may result in loss of precision">long</warning>) f; System.out.println("l = " + l); d = (double) f; System.out.println("d = " + d); f = (<warning descr="Cast from 'double' to 'float' may result in loss of precision">float</warning>) d; System.out.println("f = " + f); }