Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public class MyClassAndObject {
  2.  
  3. public MyClassAndObject(int day,String name) {
  4. System.out.printf("day-%d \n%s has been Finished the Class & Object Task",day,name);
  5. }
  6.  
  7. public static void main(String[] args) {
  8. MyClassAndObject day1 = new MyClassAndObject(1,"Rahmadi");
  9.  
  10. day1.main(null);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement