From a6a6a3af43c2676be8eb114d4e48c5a8e61c2614 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 20 Aug 2008 16:35:18 -0700 Subject: minor cleanup of JDBC demo --- java/demo/Database/library/Parser.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'java/demo/Database/library/Parser.java') diff --git a/java/demo/Database/library/Parser.java b/java/demo/Database/library/Parser.java index 2df81259696..2780cbb0dc8 100644 --- a/java/demo/Database/library/Parser.java +++ b/java/demo/Database/library/Parser.java @@ -37,10 +37,10 @@ class Parser { if(args.size() != 3) { - error("`add' requires at exactly three arguments (type `help' for more info)"); + error("`add' requires exactly three arguments (type `help' for more info)"); return; } - + try { String isbn = (String)args.get(0); @@ -52,7 +52,7 @@ class Parser { authors.add(st.nextToken().trim()); } - + BookPrx book = _library.createBook(isbn, title, authors); System.out.println("added new book with isbn " + isbn); } @@ -74,7 +74,7 @@ class Parser error("`isbn' requires exactly one argument (type `help' for more info)"); return; } - + try { if(_query != null) @@ -117,7 +117,7 @@ class Parser error("`authors' requires exactly one argument (type `help' for more info)"); return; } - + try { if(_query != null) @@ -172,7 +172,7 @@ class Parser } printCurrent(); } - + void printCurrent() { @@ -180,7 +180,7 @@ class Parser { if(_current != null) { - System.out.println("current book is:" ); + System.out.println("current book is:"); System.out.println("isbn: " + _current.isbn); System.out.println("title: " + _current.title); System.out.println("authors: " + _current.authors); -- cgit v1.2.3