diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-08-20 16:35:18 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2008-08-20 16:35:18 -0700 |
commit | a6a6a3af43c2676be8eb114d4e48c5a8e61c2614 (patch) | |
tree | 75547ef5ab7909cf337ffdf3dccd6de266f3a3db /java/demo/Database/library/Parser.java | |
parent | add Glacier2 support. (diff) | |
download | ice-a6a6a3af43c2676be8eb114d4e48c5a8e61c2614.tar.bz2 ice-a6a6a3af43c2676be8eb114d4e48c5a8e61c2614.tar.xz ice-a6a6a3af43c2676be8eb114d4e48c5a8e61c2614.zip |
minor cleanup of JDBC demo
Diffstat (limited to 'java/demo/Database/library/Parser.java')
-rw-r--r-- | java/demo/Database/library/Parser.java | 14 |
1 files changed, 7 insertions, 7 deletions
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); |