Java Basic Problems

Java: Checkbox value to Vector

If CheckBox is selected  True will be added in the Vector    if CheckBox is not selected  False will be added.

Sometimes we may need in java programming to do such code where  if any CheckBox is selected than  True should need to be added in the Vector  in the same way, if  CheckBox is not selected then False will be added in Vector.

Here is the code snippet by which you can solve the problem described  above.

Vector data=new Vector();







Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s