Is it possible to get 2 values in onNext() of subscriber in rxjava android? : <p>I've an observable like this</p>

<pre><code>Observable.zip(observable, extObs, new Func2&lt;List&lt;UserProfile&gt;, ArrayList&lt;Extension&gt;, UserProfile&gt;() {
        @Override
        public UserProfile call(List&lt;UserProfile&gt; userProfiles, ArrayList&lt;Extension&gt; extensions) {


            return userProfiles.get(0);
        }
    }).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).unsubscribeOn(Schedulers.io()).subscribe(new Subscriber&lt;UserProfile&gt;() {
        @Override
        public void onCompleted() {

        }

        @Override
        public void onError(Throwable e) {
            e.printStackTrace();
        }

        @Override
        public void onNext(UserProfile userProfile) {
            profileListener.onProfileSet(userProfile);
        }
    });
}
</code></pre>

<p>I need to pass the ArrayList in the method<code>profileListener.onProfileSet(userProfile);</code> as <code>profileListener.onProfileSet(userProfile,extensions);</code></p>

<p>Is it possible to do so in zip or is there any other methods of rxjava to solve such type of problems?</p>
