Now here you people are gonna see some new and easy ways of driving java Without running your hands on keyboard like headless chickens import java.util.Scanner class student{ private int age; private String name; public student(){} public studrnt(int age, String name){ this.name=name; this.age=age; } public student(student NewStudent) { this(NewStudent.age, NewStudent. name); } public void display(int age, String name) { if(age==0&&name=="") { System.out.println(age); System.out.println(name); } else{ System.out.println(this.age); System.out.println(this.name);} }
-
Notifications
You must be signed in to change notification settings - Fork 0
GhayyurAbbas/Java-make-it-easy
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published