How to define ChekBoxes in Java?
<p>I face a problem in defining the <code>CheckBox</code> in Java because I dont want to define it in a XML layout file.</p>

<p>I get the count of a <code>HashTable</code>. I want to display CheckBoxes according to the number of that HashTable count.</p>

<p>Here is the code</p>

<pre><code>public class SHO extends Activity{

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);


    }
}
</code></pre>

<p>In this class I want to define the chekboxes without using the XML layout file.</p>

<p>How can I achieve that?</p>
