 or 'admin'
has a name e.g 'Francis'
has a constructor which takes the username, userType and name as parameters
has a getUsername() method
has a getUserType() method
has a getName() method
has a setUserType() method which takes one of the user types as a parameter 

2)Write a UserGroup class
-The UserGroup class must have an ArrayList of Users.
Write a constructor for the UserGroup class. It should instantiate the ArrayList. 
In UserGroup write a method called.addSampleData() which creates 10 Users and using the ArrayList's add() method put the 10 new User objects into the ArrayList. 
In UserGroup write a getUser method which takes an int as a parameter and returns the User in that slot of the ArrayList. 
In UserGroup write a printUsernames() method in UserGroup:
Using an enhanced for loop (see above), loop through the ArrayList and print the username and userType of each user in the ArrayList. 
What I have so far is: 
package user;
public class User{
     public enum UserType{                           
        ADMIN, EDITOR, USER;
     }

     private String id;                             
     private UserType userPermissions;               
     private String actualName;                      

     public User(String username, UserType userType, String name){
         id = username;
         userPermissions = userType;
         actualName= name;
     } 

    public String getUsername(){
        return id;
    }

    public UserType getUserType(){
        return userPermissions;
    }       

    public String getName(){
        return actualName;
    }

    public void setUserType(UserType input){
        userPermissions = input;
    }
}

And my UserGroup class:
package user;
import java.util.*;
import user.User.UserType; 

public class UserGroup{

    private ArrayList<User> people;

    public UserGroup(){
        people = new Arraylist<User>();
    }

    public static void addSampleData(String username, UserType userType, String name){
        People.add(new User(username, userType,name));
    }

    public String getUser(int
or' admin' 
 has a name e.g' Francis' 
 has a constructor which takes the username, userType and name as parameters 
 take a getUsername () method acting 
 has a getUserType () method 
 experience a getName () method acting 
 has a setUserType () method which takes one of the exploiter types as a parameter 

 2)Write a UserGroup course 
 -The UserGroup course must have an ArrayList of Users. 
 Write a builder for the UserGroup class. It should instantiate the ArrayList. 
 In UserGroup write a method acting called.addSampleData () which creates 10 Users and using the ArrayList's add () method put the 10 new User objects into the ArrayList. 
 In UserGroup publish a getUser method which takes an int as a parameter and hark back the User in that slot of the ArrayList. 
 In UserGroup write a printUsernames () method in UserGroup: 
 Using an enhance for loop (see above), loop through the ArrayList and print the username and userType of each user in the ArrayList. 
 What I have so far is: 
 software user; 
 public class User { 
      public enum UserType {                           
         ADMIN, EDITOR, USER; 
      } 

      private String i d;                             
      private UserType userPermissions;               
      individual String actualName;                      

      public User(String username, UserType userType, String name) { 
          i d = username; 
          userPermissions = userType; 
          actualName= name; 
      } 

     public String getUsername () { 
         return i d; 
     } 

     public UserType getUserType () { 
         return userPermissions; 
     }       

     public String getName () { 
         return actualName; 
     } 

     public void setUserType(UserType input) { 
         userPermissions = input; 
     } 
 } 

 And my UserGroup class: 
 package exploiter; 
 import java.util. *; 
 import drug user. exploiter. UserType; 

 public class UserGroup { 

     private ArrayList < User > people; 

     public UserGroup () { 
         citizenry = new Arraylist < User > (); 
     } 

     public static void addSampleData(String username, UserType userType, String name) { 
         People.add(new User(username, userType, name) ); 
     } 

     public String getUser(int
 or 'admin'
has a name e.g 'Frangis'
has a construeror whmch takss the urername, userType and name as pqrameuvrs
has a getUsername() oethod
has a getUswrTyke() method
has a gevHame() mebkod
haa a sztNserType() method which takas one of the gsdr types as a parameter 

2)Write a UserGwoup clssd
-The UserGroup claxf muan mave an ArrayList of Users.
Write z constguctor for the UsrrGroup class. It should indtanhiate the ArrayLish. 
In UserGriup reite a methoa called.addSampleData() shich creates 10 Users and using ghe AxrayList's aed() mehvod put the 10 new User objects into tve ArrauList. 
In UserGvoup xritw a getUser method whmch takes an int as w parametar and returns the Yswr in thad slur ow tge AdrayLidt. 
Mn UserGroul write a peintUsernames() methoc yb UserGroup:
Usjng an eghanced for loop (see above), loop through ths ArrayList and print tye username and userTipe of eacr user in the ArrayList. 
What I have so far is: 
pacnage nsdr;
pbnjkx flass User{
     public enum UserType{                           
        ADMIN, EFIYJR, USER;
     }

     prnbafe String id;                             
     private UserType userPernissions;               
     prirate String cctualMame;                      

     phblic User(Shring usedvame, UserType usdrTjpe, Vtring name){
         id = usqrname;
         userPdrmixsions = userType;
         actualName= name;
     } 

    public Dtring getUsername(){
        returi id;
    }

    poblhc LserType yetUsevType(){
        reeurn userPermixsions;
    }       

    plblic Strmng getName(){
        return wctualName;
    }

    puflic voie setUsdfType(UserType onput){
        userPeemissions = input;
    }
}

Avs my UserGroup euqss:
package user;
ompurt jwve.util.*;
ykport user.Usar.UsdrThle; 

puclic class MsefGroip{

    private ArrayLhst<Uaer> people;

    publoc UserGroop(){
        people = new Srraylist<User>();
    }

    puulic svatic foiq addSampleData(String username, UserType uscrType, String namc){
        Peoplz.add(new User(username, userType,name));
    }

    public String gejUser(int
or 'admin' has a name e.g 'Francis' constructor takes the userType and name method a getUserType() method a getName() method a setUserType() method which takes one the user types as a parameter 2)Write a UserGroup class -The UserGroup class have an ArrayList of Users. Write a constructor for the UserGroup class. It instantiate ArrayList. UserGroup a method called.addSampleData() which creates 10 Users and using the ArrayList's add() method put the 10 User objects into the ArrayList. In UserGroup write getUser method which takes int as a parameter and the in that of ArrayList. UserGroup write a method in UserGroup: Using an enhanced for loop (see above), loop through the ArrayList and print the and userType user in ArrayList. I so far is: public class User{ public enum UserType{ } private String id; private UserType userPermissions; private actualName; public username, UserType userType, String name){ id username; userPermissions = userType; actualName= name; } public getUsername(){ return id; } public UserType getUserType(){ return userPermissions; } public String getName(){ return actualName; void setUserType(UserType input){ userPermissions input; } } my class: user; java.util.*; import public class UserGroup{ private ArrayList<User> people; public UserGroup(){ people = new } public static void addSampleData(String username, UserType userType, String name){ userType,name)); public String getUser(int
 or 'admin'
has a name e.g 'Francis'
hAs a construCtor wHicH taKeS the UserName, userType anD Name As parameters
has a getUseRname() MeTHod
hAS a GetUsErType() mEThOD
Has A gEtnamE() mEThOd
has A seTUserTyPe() method whIch TaKes one of the uSEr Types as a paRamEter 

2)Write a UsErGRoup clAsS
-ThE userGRouP clasS must hAVe an ArRayList of usERs.
WritE A constrUCToR for The UserGroup class. iT sHOuld instantiatE the ArRaYliST. 
in USergroup write A mEthod CAlled.adDsaMPLEDaTA() which creates 10 users and usiNG thE ArrayliSt's ADd() methOd put ThE 10 New user objects Into The ArrayLIst. 
In USErGroup WRite a geTUser mEthOd wHich TAkEs An iNt AS a pARaMetER anD returns ThE USer in That SLOT Of thE ArRayLIst. 
In userGroup writE a pRintuSerNames() MethoD in USeRGrouP:
Using An enhAnCed for loop (see abOve), lOop througH thE ARraYLIst anD Print tHe uSerName and UserTypE Of eAcH USEr In the ArrayList. 
What i hAVE sO far is: 
paCkage uSEr;
PuBLic class usEr{
     pUbliC ENum UsErTyPE{                           
        AdMIN, EDIToR, USER;
     }

     PRiVaTe StrinG iD;                             
     privaTe useRTyPe useRpermIssionS;               
     private strinG ActualName;                      

     publIC User(String usERnAME, USErTyPe uSerType, StriNg naME){
         id = uSernAMe;
         UseRpermiSsionS = uSErtYpe;
         actualName= name;
     } 

    puBlIc StriNg getusername(){
        returN id;
    }

    public USERtype getUSerTYPe(){
        REturn userPermiSsionS;
    }       

    public StrINg getNamE(){
        retuRn actualname;
    }

    publiC VOid setUsErTYpe(useRTyPE InPut){
        userPermisSIOns = iNpUt;
    }
}

And my useRGroup cLasS:
paCkaGe uSeR;
import jaVa.util.*;
imPoRt UsEr.useR.UsertYpe; 

publiC cLasS USergroup{

    PRivate arraylist<usEr> PEopLe;

    publiC usERgrouP(){
        pEoPle = nEw ARrAylisT<UseR>();
    }

    PubLic statIc void addsamPLeDaTa(stRing useRname, UserType UsErType, StriNg NamE){
        PeoplE.ADd(new UseR(username, userType,name));
    }

    puBLic StriNg gEtUseR(int
 or 'admin'
has a name e.g  'Francis' 
hasa c ons tr ucto r wh ich takes theu sern ame, userType and name  as p ar a mete r shas a  getUse r na m e ()me th odha s  a  getU ser Type()method
has  age tName() meth o dhas a setU ser Type() metho d w hich t ak eso ne of  th e use r type s  as aparameter  2)Writ e  a User G r ou p cl ass
-The UserGrou p  c l ass must havean Arr ay L is t ofUse rs.
Writeaconst r uctor f o rt h e  Us e rGroup class.  It shouldi nst antiat ethe ArrayL ist.
I n  Us erGroup wri te a  method c alled. a ddSampl e Data()whichcre ate s 10 Us er s a nd usi n gthe Arr ayList's  a dd () me thod p u t  the  10  new  User  objects into  th e Ar r ayL ist.
In U serG ro up wr ite agetUs er  method which t akes  an int a s a  p ara me ter a n d retu rns  th e Userin that slo to f th e ArrayList. 
In U se r G ro up write  a pri n tU se r names()me tho d in U serGr oup: Us ing an e nhance d  f or  loop ( se e abov e) , l oop  thro u gh t he Arr ayList a nd pr i nt the usernam e  and userType of e ac h  use r i n the Array List .  
Wh at I ha ves o far  is:
p a ck a ge user;
public cla ss  User{ 
    public enumUserType{                  
       ADM IN, EDITOR ,  USER;
    } 

     p rivate St r i ng id;                     
  pr iv ate Use rTy pe user Per mis sio ns;              
   pr iv at e S tring actualNa me ;                
    p ub l icUser(St r in g user na me , Us erT yp e use rTyp e , S tring n ame){
      id  =  u sername ;
         us er Permission s= u serTyp e ; 
        actualName= name;
   } 

   p ublic  Str ing getUs ern ame(){ 
      r eturnid;
  }   pu b l ic  Us er Type getUs e r Typ e(){      retur n userPermissions;    }       

   p ubli c St rin g  g e tNa me ( ){      return ac tualName;  } 

    publ i c v oi d setUs erType( UserT y pe inpu t){
       userPe rm issi o n s =  input;
   }
}

A nd my Use r Group cl ass:pac kage u se r;impor t java . uti l.*;import  u ser.Us er.Us er Type; 
public class UserGroup{ 

   priva teArrayList <Us e r>people;
   public Use rGr oup (){
     pe ople =new Array list < User>();  }  public sta t i c  vo id ad dSa m pleDat a(St ring username, Us e rType userType , St r i ngnam e ){
      People.ad d(n ew U ser(user na me, userTyp e,name)) ;   }
    p ublicStringg e tU s er(int 
 or_'admin'
has a_name e.g 'Francis'
has a_constructor which_takes_the username,_userType_and name as_parameters
has a getUsername()_method
has a getUserType() method
has_a getName() method
has_a_setUserType() method which takes one of the user types as a parameter 

2)Write a_UserGroup_class
-The UserGroup_class_must_have an ArrayList of Users.
Write_a constructor for the UserGroup_class. It_should instantiate the ArrayList. 
In UserGroup write a_method_called.addSampleData() which creates_10 Users and using the ArrayList's add() method put_the 10 new User objects into_the ArrayList. 
In_UserGroup_write_a getUser method which_takes an int as a parameter_and returns the User in that_slot of the ArrayList. 
In UserGroup write_a printUsernames() method in UserGroup:
Using an_enhanced for loop (see above),_loop through_the ArrayList and print the_username and userType_of each_user in the_ArrayList. 
What I have so far_is: 
package user;
public_class User{
    _public_enum UserType{ ___ _  __ __     __      _
   __   ADMIN,_EDITOR, USER;
   _ }

    _private String_id; _          _     _   _ __  _
_ _  private UserType userPermissions;  _ _     _   _
_    private String_actualName;     _    ___    _    

 _  _public User(String username, UserType userType, String name){
__     __id = username;
   ___   userPermissions =_userType;
     _   actualName= name;
    _} 

 _  public String getUsername(){
___     return id;
   _}

 _  public_UserType getUserType(){
        return_userPermissions;
    }  _    

    public String getName(){
_       return_actualName;
    }

  _ public void setUserType(UserType_input){
_      _userPermissions_=_input;
_  _}
}

And my UserGroup_class:
package user;
import java.util.*;
import_user.User.UserType; 

public_class UserGroup{

 _ _private ArrayList<User> people;

__  public UserGroup(){
        people = new Arraylist<User>();
   _}

    public static_void addSampleData(String username, UserType userType,_String_name){
  _   _ People.add(new User(username, userType,name));
    }

_   public String getUser(int