Java: dividing 2 ints makes an int?
<p>In another Bruce Eckels exercise in calculating velocity, <code>v = s / t</code> where s and t are integers.  How do I make it so the division cranks out a float?</p>

<pre><code>class CalcV {
  float v;
  float calcV(int s, int t) {
    v = s / t;
    return v;
  } //end calcV
}

public class PassObject {

  public static void main (String[] args ) {
    int distance;
    distance = 4;

    int t;
    t = 3;

    float outV;

    CalcV v = new CalcV();
    outV = v.calcV(distance, t);

    System.out.println("velocity : " + outV);
  } //end main
}//end class
</code></pre>
