Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
852 B
0
Indexable
Never
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package lab;

/**
 *
 * @author student
 */
public class Test {
    public static void main(String[] args){
        Student s1=new Student();
        s1.id=101;
        s1.name= "A";
        s1.cgpa=3.60;
        System.out.println("id="+s1.id);
        System.out.println("name="+s1.name);
        System.out.println("cgpa="+s1.cgpa);
        System.out.println("");
        Student s2=new Student();
        s2.id=102;
        s2.name= "B";
        s2.cgpa=3.00;
        System.out.println("id="+s1.id);
        System.out.println("name="+s1.name);
        System.out.println("cgpa="+s1.cgpa);
        System.out.println("");
    }
}