Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pucc;
- public class student{
- String name;
- int id;
- double cgpa;
- student(String n,int i,double d)
- {
- name=n;
- id=i;
- cgpa=d;
- }
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- System.out.println("hello world");
- int a=2,b=3,c;
- c=a+b;
- student sudip;
- sudip=new student("sudip",1311,3.5);
- System.out.println(sudip.name);
- System.out.println(sudip.id);
- System.out.println(sudip.cgpa);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement