void methods


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

    		double amount = 234.79;
    		double x = 54.7;     
    
    		// method calls
    
    		calcPST (amount);
    		calcPST (74.98);
    		calcPST(x);
    
  	   } // main method

	   // write method outside of main() but inside of class
  	   public static void calcPST (double costPrice)
  	   {
    	     double percentage = 0.08;
    
    	     double tax = costPrice * percentage;

    	     System.out.println (percentage);
    	     System.out.println (tax);
    	     System.out.println("");
  	   }

	} // DemoVoid class