title: How can i return 2 ArrayList From same method
body: <p>I have a method as below,this method contains two arraylist ("eventList" and "emailList").</p>
  
  <pre><code>List&lt;EmailUID&gt; emailid=SharedEvent.getEmailUid(filter, uri, exchWD, EmailShare);
  
  public static List&lt;EmailUID&gt; getEmailUid(Filter filter, String uri, NexWebDav exchWD,
              List&lt;String&gt; emailShare)
  List eventsToday = null;
  List&lt;EmailUID&gt; arrayList = new ArrayList&lt;EmailUID&gt;();
  List&lt;EmailUID&gt; emailList = new ArrayList&lt;EmailUID&gt;();
  List&lt;EmailUID&gt; eventList = new ArrayList&lt;EmailUID&gt;();
  
          for (String email : emailShare) {
              String uris = uri + email + "/events/";
              InputStream stream = null;
              try {
                  stream = exchWD.get(uris);
                  BufferedReader br = new BufferedReader(new InputStreamReader(stream));
                  CalendarBuilder builder = new CalendarBuilder();
                  net.fortuna.ical4j.model.Calendar calendar = builder.build(br);
  
                  //eventsToday.add(email);
  
                  eventsToday = (List&lt;?&gt;) filter.filter(calendar.getComponents(Component.VEVENT));
                  arrayList=getEmailUID(eventsToday,email);
                  emailList.addAll(arrayList);//
                  eventList.addAll(eventsToday);//
  
              } catch (ParserException e) {
                  LOGGER.error("Parse Exception"+e.getMessage());
              } finally {
                  IOUtils.closeQuietly(stream);
              }
          }
      //return eventList;
      return emailList;
      }
  </code></pre>
  
  <p>How to get both the list "eventList" and "emailList"</p>