// // //==========================Submission Method========================== //This method checks to see which radio button has been selected and //which question type is active at the time of selection and uses this //to determine which attribute integer should be incremented. //===================================================================== boolean submission() { String selected = gui.getSelectedRadiobutton("myGroup"); if(selected.equals("myRadiobutton1")){ if ((Qtype == 0) || ( Qtype == 1)||( Qtype == 2)||( Qtype == 3)||( Qtype == 4)||( Qtype == 5)||( Qtype == 6)){ strength = strength+1; }else if (( Qtype == 7)||( Qtype == 8)||( Qtype == 9)||( Qtype == 10)||( Qtype == 11)||( Qtype == 12)){ agility = agility+1; }else if (( Qtype == 13)||( Qtype == 14)||( Qtype == 15)||( Qtype == 16)||( Qtype == 17)){ finemotor = finemotor+1; }else if (( Qtype == 18)||( Qtype == 19)||( Qtype == 20)||( Qtype == 21)){ metabolism = metabolism+1; }else if (( Qtype == 22)||( Qtype == 23)||( Qtype == 24)){ intellect = intellect+1; }else if (( Qtype == 25)||( Qtype == 26)){ worldliness = worldliness+1; }else if ( Qtype == 27){ creativity = creativity+1; } }else if (selected.equals("myRadiobutton2")){ if ( Qtype == 0){ agility = agility+1; }else if (( Qtype == 1)||( Qtype == 7)){ finemotor = finemotor+1; }else if (( Qtype == 2)||( Qtype == 8)||( Qtype == 13)){ metabolism = metabolism+1; }else if (( Qtype == 3)||( Qtype == 9)||( Qtype == 14)||( Qtype == 18)){ intellect = intellect+1; }else if (( Qtype == 4)||( Qtype == 10)||( Qtype == 15)||( Qtype == 19)||( Qtype == 22)){ worldliness = worldliness+1; }else if (( Qtype == 5)||( Qtype == 11)||( Qtype == 16)||( Qtype == 20)||( Qtype == 23)||( Qtype == 25)){ creativity = creativity+1; }else if (( Qtype == 6)||( Qtype == 12)||( Qtype == 17)||( Qtype == 21)||( Qtype == 24)||( Qtype == 26)||( Qtype == 27)){ charisma = charisma+1; } } //Debugging block, for checking if the attributes have been properly incremented. println("strength = "+ strength); println("agility = "+ agility); println("finemotor = "+ finemotor); println("metabolism = "+ metabolism); println("intellect = "+ intellect); println("worldliness = "+ worldliness); println("creativity = "+ creativity); println("charisma = "+ charisma); return submit; }