title: Java - Why doesn't method display?
body: <pre><code>import java.io.*;
  
  public class test
  {
     public static void main(String[] args)throws IOException
     {
        double apples = 1.7;
        //showSum(5, 10);
  
     }
  
  
     public static void apples(double fruit)
     {
  
        System.out.println("number of fruit: " + fruit);
     }
  }
  </code></pre>
  
  <p>I don't know why this isn't displaying fruit in the method apples.
  I had another portion of the code to display <code>showSum</code> and that worked just fine. So i'm not sure why it won't display fruit. I wanted to cast it as an <em>int</em> from a <em>double</em> </p>