core java programming issues
<p>(a) There is a student class which contains name field(String) and id(String)
it has no default constructor. however, it has a parameterized constructor, 
taking two Strings as an argument to supply value to those feilds.</p>

<p>(b) it has a non static inner class name mark which contains fields cgpa(float)
and sgpa(float). it has only one parameterized constructor to supply value
to cgpa and sgpa.</p>

<p>(c) the main() method resides in a different class named Demo. Create an
array of student class and store the data there.</p>

<pre><code>class Student{

    String name;    
    String id;

    public Student(String n,String d){    
       name=n;    
       id=d;    
    }


    class mark{
        float cgpa;    
        float sgpa;

        public mark(float g,float p){    
           cgpa=g;    
           sgpa=p;
        }

    }
}

public class main{

    public static void main(String[]args){

        Student s[]=new Student[2];

        s[0]=new Student("vivek","433"); 

        // how to use non static argument of constructor in Student class array

        System.out.println("THe name is "+s[0].name+" and the id is "+s[0].id);

    }

}
</code></pre>

<p>there is problem create array of class and store the argument in array</p>
