Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Case Study 2—An Inventory Ta... > 15.14 DISPLAYING THE TABLE CONTENTS

15.14 DISPLAYING THE TABLE CONTENTS

This method provides neater display by padding out columns and suppressing output from empty locations. If a simple version such as …

public void displayItems() {
     System.out.println("Location     Code     Name   Instock");
     for (int i = 0; i < 10; i++)


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint