/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author STUDENT */ class Books{ int no; double price; public void compute(int numberOfBooks,double priceOfBooks){ double total= numberOfBooks*priceOfBooks; System.out.println("The total is price of the books is: " +total); } } public class BooksTestDrive { /** * @param args the command line arguments */ public static void main(String[] args) { Books one = new Books(); int numberOfBooks=5; double priceOfBooks=2.5; one.compute(numberOfBooks,priceOfBooks); } }