title: Function method, finding volume of a sphere
body: <pre><code>public class Part1
  {
      public static void main(String args []) 
      { 
          DecimalFormat df=new DecimalFormat("###.##");
          double v;
          Scanner sc = new Scanner( System.in );
          double radius;
          System.out.println( "Enter radius of the basketball: " ); 
          radius = sc.nextDouble(); 
          System.out.println("The volume of the basketball is " +df.format(v));
      }
      public static int volume (int v)
      {   
          v= ( 4.0 / 3.0 ) * Math.PI * Math.pow( radius, 3 ); 
      }
  }
  </code></pre>
  
  <p>Basically, i have to let the user input the radius of the basketball and you have to calculate the volume of the basketball. the codes works perfectly, but i don't know how to do it in function method?</p>