java : Strange Structure to form the Request Object
<p>For sending the request , i need to send the UserlistServiceRequest 
Once i set the Data inside the User Object .
Please let me know how can i  create the UserlistServiceRequest with this structure ??</p>

<p>// Created the User Object here </p>

<pre><code>public static void main(String args[]) {

    User user1 = new User();
        User user2= new User();

                user1.name = "ABC";
        user1.age = "28";
        user2.name = "XYZ";
        user2.age = "38";


}
</code></pre>

<p><strong>UserlistServiceRequest.java</strong></p>

<pre><code>public class UserlistServiceRequest {

   private String            UserlistId;
   private Userlists        Userlists;

   public void setUserlists(Userlists Userlists)
   {
      this.Userlists = Userlists;
   }

   public Userlists getUserlists()
   {
      return Userlists;
   }

   public void setUserlistId(String UserlistId)
   {
      this.UserlistId = UserlistId;
   }

   public String getUserlistId()
   {
      return UserlistId;
   }

}
</code></pre>

<p><strong>Userlists.java</strong></p>

<pre><code>public class Userlists implements Serializable {


    private Userlist[] Userlist;
    public Userlist[] getUserlist() {
        return Userlist;
    }
    public void setUserlist(Userlist[] Userlist) {
        this.Userlist = Userlist;
    }

}
</code></pre>

<p><strong>Userlist.java</strong></p>

<pre><code>public class Userlist implements Serializable
{

   private UserlistItem[]   UserlistItem;


   public UserlistItem[] getUserlistItem()
   {
      return UserlistItem;
   }

   public void setUserlistItem(UserlistItem[] UserlistItem)
   {
      this.UserlistItem = UserlistItem;
   }
}
</code></pre>

<p><strong>UserlistItem.java</strong></p>

<pre><code>public class UserlistItem implements java.io.Serializable {


    private User user; 

    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }


}
</code></pre>

<p><strong>User.java</strong></p>

<pre><code>  public class User implements Serializable
    {

       private String            name ;

     public String getName()
       {
          return name;
       }

       public void setSym(String name)
       {
          this.name = name;
       }

    }
</code></pre>
