import visad.*; public class dataex4 { public static void main (String arg[]) { try { Real t1,t2,sum; RealType k = new RealType("kelvin",SI.kelvin,null); t2 = new Real(k,273.); t1 = new Real(k,255.); sum = (Real) t1.add(t2); System.out.println("sum = "+sum+" "+sum.getUnit()); } catch (Exception e) {System.out.println(e);} } }