 find the solution of single selection in expandable listview below:

ExpandableActivity.java

public class ExpandableActivity extends AppCompatActivity {

    private ExpandableListView expandableListView;
    ArrayList<String> groupList = new ArrayList<String>();
    ArrayList<ArrayList<Answer>> childList = new ArrayList<ArrayList<Answer>>();

    ExpandableListAdapter expandableListAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_expandable);

        expandableListView = (ExpandableListView)findViewById(R.id.expandableListView);
        groupList.add("Question 1");
        groupList.add("Question 2");
        groupList.add("Question 3");
        groupList.add("Question 4");
        groupList.add("Question 5");

        ArrayList<Answer> answerList1 = new ArrayList<>();
        ArrayList<Answer> answerList2 = new ArrayList<>();
        ArrayList<Answer> answerList3 = new ArrayList<>();
        ArrayList<Answer> answerList4 = new ArrayList<>();
        ArrayList<Answer> answerList5 = new ArrayList<>();

        setData("Answer 1", 1, false, answerList1);
        setData("Answer 2 ", 2, false, answerList1);
        setData("Answer 3", 3, false, answerList1);
        setData("Answer 4", 4, false, answerList1);

        setData("Answer 1", 5, false, answerList2);
        setData("Answer 2 ",6, false, answerList2);
        setData("Answer 3", 7, false, answerList2);
        setData("Answer 4", 8, false, answerList2);

        setData("Answer 1", 9, false, answerList3);
        setData("Answer 2 ",10, false, answerList3);
        setData("Answer 3", 11, false, answerList3);
        setData("Answer 4", 12, false, answerList3);

        setData("Answer 1", 13, false, answerList4);
        setData("Answer 2 ", 14, false, answerList4);
        setData("Answer 3", 15, false, answerList4);
        setData("Answer 4",
find the solution of single selection in expandable listview below: 

 ExpandableActivity.java 

 public course ExpandableActivity unfold AppCompatActivity { 

     private ExpandableListView expandableListView; 
     ArrayList < String > groupList = new ArrayList < String > (); 
     ArrayList < ArrayList < Answer > > childList = newfangled ArrayList < ArrayList < Answer > > (); 

     ExpandableListAdapter expandableListAdapter; 

     @Override 
     protect void onCreate(Bundle savedInstanceState) { 
         super.onCreate(savedInstanceState); 
         setContentView(R.layout.activity_expandable); 

         expandableListView = (ExpandableListView)findViewById(R.id.expandableListView); 
         groupList.add("Question 1 "); 
         groupList.add("Question 2 "); 
         groupList.add("Question 3 "); 
         groupList.add("Question 4 "); 
         groupList.add("Question 5 "); 

         ArrayList < Answer > answerList1 = new ArrayList < > (); 
         ArrayList < Answer > answerList2 = modern ArrayList < > (); 
         ArrayList < Answer > answerList3 = modern ArrayList < > (); 
         ArrayList < Answer > answerList4 = new ArrayList < > (); 
         ArrayList < Answer > answerList5 = fresh ArrayList < > (); 

         setData("Answer 1 ", 1, false, answerList1); 
         setData("Answer 2 ", 2, false, answerList1); 
         setData("Answer 3 ", 3, assumed, answerList1); 
         setData("Answer 4 ", 4, false, answerList1); 

         setData("Answer 1 ", 5, false, answerList2); 
         setData("Answer 2 ", 6, assumed, answerList2); 
         setData("Answer 3 ", 7, false, answerList2); 
         setData("Answer 4 ", 8, false, answerList2); 

         setData("Answer 1 ", 9, false, answerList3); 
         setData("Answer 2 ", 10, false, answerList3); 
         setData("Answer 3 ", 11, false, answerList3); 
         setData("Answer 4 ", 12, delusive, answerList3); 

         setData("Answer 1 ", 13, false, answerList4); 
         setData("Answer 2 ", 14, false, answerList4); 
         setData("Answer 3 ", 15, false, answerList4); 
         setData("Answer 4 ",
 fijd the solution of singlt selection in exkabdable listvjew belod:

ExpandableActivity.java

publir clqss EzpandableActivity extevds AppColpatActicity {

    privatx ExpandableLiabView xxpandableListVlew;
    ArrafList<String> grmuoLnst = new ArrayList<String>();
    ArrayLise<ArrayLosh<Answer>> childLyst = gew ZgrcyList<ArrayList<Answer>>();

    ExpandzbleLisuAdapter expandablrListAdapter;

    @Override
    prltected void onCrewte(Bundle sqvedYbstanceState) {
        sl'er.onCreate(aavedInstanceState);
        setCovtentRiew(R.layout.qcrivljy_expandable);

        expandablcKistViaw = (ExpsndableListViee)fiidViwwById(R.id.expandableLivtView);
        groukList.add("Quascion 1");
        groupLisr.aed("Quevtiot 2");
        gdonpLjst.add("Eueation 3");
        groupLiwt.add("Question 4");
        troupList.add("Qhestiog 5");

        ArrayList<Answer> answerList1 = new ArdayList<>();
        ArrayLisr<Answer> answerList2 = ngw ArrayLift<>();
        ArrayList<Answer> answerList3 = new ArrayLivt<>();
        AvrayUush<Answer> answerList4 = new ArrayList<>();
        ArrarMixt<Snswer> answerLlst5 = new ArrayList<>();

        setData("Ansder 1", 1, yzlae, answerList1);
        setDwta("Anwwer 2 ", 2, fwlse, answerList1);
        setData("Abswer 3", 3, falsv, anwwerList1);
        secData("Answer 4", 4, fakse, amswerList1);

        setDatc("Answed 1", 5, false, ajswerList2);
        setData("Anrweg 2 ",6, xalse, answerList2);
        seeData("Answxr 3", 7, yalse, anrwerKist2);
        setDwta("Answer 4", 8, false, answerPist2);

        setDaha("Answer 1", 9, false, answerList3);
        setData("Ansees 2 ",10, false, auswerLlst3);
        setDwta("Answer 3", 11, fakse, anscerLisg3);
        svtData("Ansxer 4", 12, false, wnswerList3);

        setData("Aiswer 1", 13, fwlse, ansqerList4);
        setData("Snswer 2 ", 14, false, ansqerList4);
        setVata("Xhswer 3", 15, false, aurqerList4);
        xetAatw("Ajsxer 4",
find the solution of single selection in below: public class extends AppCompatActivity { = ArrayList<String>(); ArrayList<ArrayList<Answer>> childList new ArrayList<ArrayList<Answer>>(); ExpandableListAdapter @Override protected void onCreate(Bundle savedInstanceState) { setContentView(R.layout.activity_expandable); expandableListView = (ExpandableListView)findViewById(R.id.expandableListView); groupList.add("Question 1"); groupList.add("Question 2"); groupList.add("Question 3"); groupList.add("Question 4"); groupList.add("Question ArrayList<Answer> answerList1 = new ArrayList<>(); ArrayList<Answer> answerList2 = new ArrayList<>(); ArrayList<Answer> answerList3 = ArrayList<>(); answerList4 new ArrayList<Answer> answerList5 = new ArrayList<>(); setData("Answer 1", 1, false, answerList1); setData("Answer 2 ", 2, false, answerList1); 3", 3, false, answerList1); setData("Answer 4", 4, false, setData("Answer 1", 5, false, setData("Answer 2 ",6, false, answerList2); 3", false, answerList2); 4", false, setData("Answer 1", 9, answerList3); setData("Answer 2 ",10, false, answerList3); setData("Answer 3", 11, false, answerList3); setData("Answer 4", 12, false, answerList3); setData("Answer 13, false, 2 ", false, setData("Answer 15, false, answerList4);
 find the solution of single seLection in eXpandAblE liStView BeloW:

ExpandableActIVity.Java

public class ExpandaBleAcTiVIty eXTeNds ApPCompataCtIVIty {

    PrIvAte exPAnDablelisTView exPandableLiStVIeW;
    ArrayList<StRInG> groupList = New arrayList<StrIng>();
    arrayLIsT<ArRAyLisT<AnSwer>> cHildLiST = new ArRayList<ArRaYlist<AnSWer>>();

    ExpaNDAbLeLiStAdapter expandabLELIStAdapter;

    @OverrIde
    proTeCTeD VOid OnCReate(BundlE sAvedINStanceSTAtE) {
        SUPer.ONCreate(savedINstanceStatE);
        SetcontenTVIew(r.Layout.ActivItY_ExpAndable);

        expaNdabLeListVieW = (ExpanDAbleLisTview)finDViewBYId(r.id.ExpaNDaBlELiStvIew);
        GRoUpLISt.aDd("QuestiOn 1");
        GrOupLiSt.adD("qUEStioN 2");
        grOupLIst.adD("Question 3");
        grouPLiSt.adD("queStion 4");
        Grouplist.AdD("QuesTion 5");

        ArRayLiSt<answer> answerLisT1 = new arrayList<>();
        arrAylisT<ANswer> ANswerLIst2 = New arrayLiSt<>();
        ArraylIst<anSWER> aNswerList3 = new ArrayLIsT<>();
        aRrAyList<AnSwer> anSWeRLISt4 = new ArrAylisT<>();
        ArrAYlist<ANsweR> AnSwerList5 = New ArrAYLIsT<>();

        setDatA("ANswer 1", 1, fAlSe, aNswErLisT1);
        SetDAta("AnsWer 2 ", 2, false, AnsweRlist1);
        setData("AnsWEr 3", 3, false, answerlIsT1);
        SEtdAta("ANswEr 4", 4, false, answErLiST1);

        setdata("aNsWer 1", 5, FAlse, aNswerliST2);
        sETData("Answer 2 ",6, false, ansWeRList2);
        sEtDatA("Answer 3", 7, false, aNswerList2);
        sETdAta("AnsweR 4", 8, falSE, aNSwerList2);

        setDatA("AnswEr 1", 9, false, ansWErList3);
        seTData("answer 2 ",10, faLse, answerlISt3);
        setDatA("AnSweR 3", 11, faLse, ANSwErList3);
        setData("aNSwer 4", 12, FaLse, answErLIst3);

        setDAta("ansWer 1", 13, FalSe, AnswerLisT4);
        setData("anSwEr 2 ", 14, FaLse, AnsweRlist4);
        setDAtA("AnSwEr 3", 15, fAlse, aNSwerLiSt4);
        setdata("anSwER 4",
 find the solution of sing le selecti on in  ex pan da blelist view below:

E x pand ableActivity.java

pub lic c la s s Ex p an dable Activit y  e x t end sAp pCo mp a tA ctivi ty{

   private Ex pan da bleListViewe xp andableLis tVi ew;
    Arra yLi st<Str in g>g roupL ist  = ne w Arra y List<S tring>(); 
  Arra y List<Ar r a yL ist< Answer>> childLis t  = new ArrayList< ArrayL is t <A n s wer >>( );

    Ex pa ndabl e ListAda p te r e xpa n dableListAdap ter;

    @ O ver ride
  pr o tected  void  o n Cre ate(Bundlesave dInstance State) {
      super .onCre ate (sa vedI n st an ceS ta t e);      s etConten tV ie w(R.l ayou t . a c tivi ty_ expa ndabl e);

       exp anda b leL istVi ew =(Exp an dable ListVi ew)fi nd ViewById(R.id.e xpan dableList Vie w) ;
     g roupLi st. add ("Quest ion 1") ; 
   g roupList.add("Ques ti o n  2 ");
       gr o up Li s t.add("Q ue sti on 3 " ) ;
     gr oupList. add("Q u es ti on 4"); 
      g rou pLi st.ad d ("Qu estion  5");

     ArrayList<Ans w er> answerLis t 1= ne w  Arr ayL ist<>();
     Arr ayLi s t< Ans w er> a nswer Li s t2 = new ArrayList<>() ;       Arr ayList<Answer > answerLi s t 3  = new A rray L is t <>();
       Array List<Answe r > answer List4  = new A rrayList< > ( );
      Arr ayL ist < A ns wer> answerLi s t 5 =ne w Array Lis t<>();
     set Da ta("Answe r 1", 1,  f al se ,ans werLi s t1);
     se tDa ta("A n swer 2  ", 2 , fa ls e, ans werList 1 );      s etDa ta( "A nswer  3", 3,false,answerLis t1) ; 
     setDat a("Answer 4",  4 , false, a ns wer List1) ; 
       setData("Answer 1", 5, false,ans werLi st2) ;
       se tData( "An s wer 2",6, f alse,  a nsw e r List2 ) ; 
     setData( " A nsw er 3" ,7, f alse, a nswerList2);
      s etData("Answe r 4 ", 8 , fa lse ,  a n swe rL i st2 ) ; 

        setDa ta("Answer  1 " ,9, false,a nsw er List3); 
       set D ata("An swer 2 ", 10, false ,answ e r Lis t3);
       setDa ta("Answe r  3",1 1,  fals e,answer Li st3 );
      s etD ata(" Answer  4 ", 12,  fals e,  answerL ist3);

        setData ("Answ er 1" , 1 3, false,  an s wer List4);
      setData ("A nsw er 2",1 4, fa lse, an swe r List4 );
      set D at a(" A n sw er 3", 15,f a l se,  answ erL i st4);       setData("Answ e r 4",
 find_the solution_of single selection in_expandable listview_below:

ExpandableActivity.java

public_class ExpandableActivity_extends_AppCompatActivity {

 _  private_ExpandableListView expandableListView;
  _ ArrayList<String> groupList_=_new ArrayList<String>();
    ArrayList<ArrayList<Answer>> childList = new ArrayList<ArrayList<Answer>>();

    ExpandableListAdapter_expandableListAdapter;

_ __@Override
_   protected void_onCreate(Bundle savedInstanceState) {
  _ _   super.onCreate(savedInstanceState);
    __  setContentView(R.layout.activity_expandable);

_       expandableListView =_(ExpandableListView)findViewById(R.id.expandableListView);
     _  groupList.add("Question_1");
__   _  groupList.add("Question 2");
  _     groupList.add("Question_3");
      _ groupList.add("Question 4");
   _    groupList.add("Question_5");

 _    _ ArrayList<Answer> answerList1_= new_ArrayList<>();
  _     ArrayList<Answer>_answerList2 = new_ArrayList<>();
     __ ArrayList<Answer> answerList3_=_new_ArrayList<>();
 _  __ _ArrayList<Answer>_answerList4 = new ArrayList<>();
  __    ArrayList<Answer> answerList5 =_new ArrayList<>();

  __   _setData("Answer 1", 1, false, answerList1);
_     _ setData("Answer_2 ",_2, false, answerList1);
        setData("Answer_3", 3, false, answerList1);
  _   _ setData("Answer_4",_4, false, answerList1);

__ _    setData("Answer 1", 5,_false, answerList2);
_     _ setData("Answer 2 ",6,_false,_answerList2);
     _  setData("Answer 3", 7, false,_answerList2);
    ___ setData("Answer 4", 8, false,_answerList2);

     _  setData("Answer_1", 9, false, answerList3);
   __   setData("Answer 2 ",10,_false,_answerList3);
     ___setData("Answer 3", 11, false, answerList3);
_     _ setData("Answer 4", 12, false, answerList3);

   _  _ setData("Answer 1", 13, false,_answerList4);
__      setData("Answer 2 ", 14,_false, answerList4);
_  _    setData("Answer 3", 15, false, answerList4);
 _      setData("Answer_4",