public class BookRunner { public static void main(String[] args) { Book x = new Book( "hobbit", 99 ); System.out.println( x.getBookInfo() ); x = new Book( "thrones", 6.95 ); System.out.println( x.getBookInfo() ); } } /* output hobbit-99.0 thrones-6.95 */