summaryrefslogtreecommitdiff
path: root/java/demo/Freeze/phonebook/Parser.java
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-06-23 21:17:04 +0000
committerMarc Laukien <marc@zeroc.com>2002-06-23 21:17:04 +0000
commit59788b8663f1f05a95b7afbbc6d2846dae11c96a (patch)
treec3ed292df270f11157decb83827d9af4144db52d /java/demo/Freeze/phonebook/Parser.java
parentfile run.py was initially added on branch location. (diff)
downloadice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.bz2
ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.xz
ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.zip
removed spaces after keywords
Diffstat (limited to 'java/demo/Freeze/phonebook/Parser.java')
-rw-r--r--java/demo/Freeze/phonebook/Parser.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/java/demo/Freeze/phonebook/Parser.java b/java/demo/Freeze/phonebook/Parser.java
index df6308ddc38..bbc3843568e 100644
--- a/java/demo/Freeze/phonebook/Parser.java
+++ b/java/demo/Freeze/phonebook/Parser.java
@@ -38,7 +38,7 @@ class Parser
void
addContacts(java.util.List args)
{
- if (args.isEmpty())
+ if(args.isEmpty())
{
error("`add' requires at least one argument (type `help' for more info)");
return;
@@ -47,7 +47,7 @@ class Parser
try
{
java.util.Iterator p = args.iterator();
- while (p.hasNext())
+ while(p.hasNext())
{
ContactPrx contact = _phoneBook.createContact();
String name = (String)p.next();
@@ -68,7 +68,7 @@ class Parser
void
findContacts(java.util.List args)
{
- if (args.size() != 1)
+ if(args.size() != 1)
{
error("`find' requires exactly one argument (type `help' for more info)");
return;
@@ -95,7 +95,7 @@ class Parser
void
nextFoundContact()
{
- if (_current != _foundContacts.length)
+ if(_current != _foundContacts.length)
{
++_current;
}
@@ -107,7 +107,7 @@ class Parser
{
try
{
- if (_current != _foundContacts.length)
+ if(_current != _foundContacts.length)
{
System.out.println("current contact is:" );
System.out.println("name: " + _foundContacts[_current].getName());
@@ -128,7 +128,7 @@ class Parser
void
setCurrentName(java.util.List args)
{
- if (args.size() != 1)
+ if(args.size() != 1)
{
error("`name' requires exactly one argument (type `help' for more info)");
return;
@@ -136,7 +136,7 @@ class Parser
try
{
- if (_current != _foundContacts.length)
+ if(_current != _foundContacts.length)
{
String name = (String)args.get(0);
_foundContacts[_current].setName(name);
@@ -160,7 +160,7 @@ class Parser
void
setCurrentAddress(java.util.List args)
{
- if (args.size() != 1)
+ if(args.size() != 1)
{
error("`address' requires exactly one argument (type `help' for more info)");
return;
@@ -168,7 +168,7 @@ class Parser
try
{
- if (_current != _foundContacts.length)
+ if(_current != _foundContacts.length)
{
String addr = (String)args.get(0);
_foundContacts[_current].setAddress(addr);
@@ -188,7 +188,7 @@ class Parser
void
setCurrentPhone(java.util.List args)
{
- if (args.size() != 1)
+ if(args.size() != 1)
{
error("`phone' requires exactly one argument (type `help' for more info)");
return;
@@ -197,7 +197,7 @@ class Parser
try
{
- if (_current != _foundContacts.length)
+ if(_current != _foundContacts.length)
{
String number = (String)args.get(0);
_foundContacts[_current].setPhone(number);
@@ -219,7 +219,7 @@ class Parser
{
try
{
- if (_current != _foundContacts.length)
+ if(_current != _foundContacts.length)
{
_foundContacts[_current].destroy();
System.out.println( "removed current contact" );
@@ -242,7 +242,7 @@ class Parser
void
setEvictorSize(java.util.List args)
{
- if (args.size() != 1)
+ if(args.size() != 1)
{
error("`size' requires exactly one argument (type `help' for more info)");
return;
@@ -295,7 +295,7 @@ class Parser
String
getInput()
{
- if (_interactive)
+ if(_interactive)
{
System.out.print(">>> ");
System.out.flush();