non-void methods


	public class DemoPercent
	{
  	   public static void main (String[] args)
  	   {

    	      double amount = 230.05;
    	      double percentage = 0.08;
    
	      // may or may not assign to a variable
       	      double total = calcPST (percentage, amount); 

 	      System.out.println(total);
    
  	   } // main method
  
  	
	   public static double calcPST (double PST, double value)
  	   {    	
    	      double total = (value * PST); 
    
              return total; // last line in method
  	   }
	}