Results 1 to 2 of 2
  1. #1
    pink123 is offline Member
    Join Date
    Feb 2011
    Posts
    84
    Rep Power
    0

    Default How to save the value for multiple choice answers

    Hi,

    I want to save the value a user selects for a question .Basically I want to set the value in a java object.
    The value or the answer is a checkbox(multiple selection is allowed).

    Question 1(label)

    chkbox1(Jcheckbox)
    chkbox2
    chkbox3
    chkbox4

    How do I save if the user select chkbox1 and chkbox2.Do I need two different setters like setchkbox1() and setchkbox2() or how do I do it.

    Please please help.I am really stuck up

    Thanks,

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

Similar Threads

  1. Add a question with multiple choice answer
    By pink123 in forum AWT / Swing
    Replies: 6
    Last Post: 03-04-2011, 05:45 AM
  2. need answers to this java program
    By peixd in forum New To Java
    Replies: 2
    Last Post: 06-14-2010, 04:23 AM
  3. Java- Interview Questions and Answers
    By nishants in forum Java Software
    Replies: 0
    Last Post: 04-17-2010, 12:48 PM
  4. Inheritance problems...quick answers if possible :)
    By circuspeanuts in forum New To Java
    Replies: 1
    Last Post: 04-13-2009, 09:06 PM
  5. Need help with T/F and Multiple Choice
    By sayso36 in forum Advanced Java
    Replies: 0
    Last Post: 03-12-2008, 04:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •