first i had make class and object in which i had call student name but when i had try to implement constructor i wouldn't working please suggest some solution regarding this code 

Class object code:

```
package classObject;
import java.util.Scanner;
public class classObject {
    public static void main(String[] args) {
        Scanner input=new Scanner (System.in);
        studentClass st=new studentClass();
}
}

```

Student class code:

```
package classObject;

public class studentClass {

    {
        String fname;
        String lname;
        static int count=0;

        public studentClass()
        {
            System.out.println("i m construtor");
        }

    void print ()
    {
        System.out.println(fname+" "+lname);
        count++;
        System.out.println("total student are= "+count);
    }

}

```