What's wrong with my code?
import java.util.*; class Student { public int rollno; public String name; Student(int rollno,String name) { this.rollno=rollno; this.name=name; } void output() { System.out.println("Name of student:"+name); System.out.println("Rollno:"+rollno); } } class Student1 extends Student { double height; int weight; Student1(int rollno,String name,double height,int weight) { super(rollno,name); this.height =height; this.weight =weight; } void output() { super.output(); System.out.println("Height:"+height); System.out.println("Weight:"+weight); } public static void main(String args[]) { Scanner obj1=new Scanner(System.in); System.out.println("Enter rollno:"); rollno=obj1.nextInt(); System.out.println("Enter name:"); name=obj1.next(); System.out.println("Enter height:"); height=obj1.nextDouble(); System.out.println("Enter weight:"); weight=obj1.nextInt(); Student1 s1 = new Student1(rollno,name,height,weight); s1.output(); } }