1 17 18 package tutorial; 19 20 24 public class NumberCruncher 25 { 26 private final int m_primary; 27 private final float m_secondary; 28 29 public NumberCruncher( Integer primary, Double secondary ) 30 { 31 m_primary = primary.intValue(); 32 m_secondary = secondary.floatValue(); 33 } 34 35 39 public float crunch() 40 { 41 return ( m_secondary * m_primary ); 42 } 43 } 44 | Popular Tags |