Skip to content
Permalink
Browse files
+ props on addGroup
  • Loading branch information
shawnmckinney committed Dec 2, 2021
1 parent 147d874 commit 7c5bfaa9389db6045c5167b0d3ff0712099fd2fa
Showing 1 changed file with 11 additions and 0 deletions.
@@ -88,6 +88,17 @@ void add()
System.out.println("Enter member name:");
String mname = ReaderUtil.readLn();
group.setMember( mname );

System.out.println( "Enter prop key (or NULL to skip):");
String key = ReaderUtil.readLn();
for (int i = 0; key != null && key.length() > 0; i++)
{
System.out.println( "Enter prop val:");
group.addProperty(key, ReaderUtil.readLn());
System.out.println( "Enter next prop key (or NULL if done entering properties)");
key = ReaderUtil.readLn();
}

groupMgr.add( group );
System.out.println("Group successfully added");
System.out.println("ENTER to continue");

0 comments on commit 7c5bfaa

Please sign in to comment.