Advertisement
Morogn93

Untitled

Oct 27th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. //MasterJedi.java:
  2.  
  3. public class MasterJedi {
  4.     public long pesel;
  5.  
  6.     public MasterJedi(long i) {
  7.         pesel = i;
  8.     }
  9.  
  10.     class StudentJedi {
  11.         public long pesel;
  12.  
  13.         public StudentJedi(String s, long j) {
  14.             System.out.println(s + j);
  15.         };
  16.     }// koniec class StudentJedi
  17.  
  18.     public static void main(String args[]) {
  19.         MasterJedi mj = new MasterJedi(90100903890L);
  20.         System.out.println("PESEL mistrza to: " + mj.pesel);
  21.         MasterJedi.StudentJedi sj = mj.new StudentJedi("PESEL + STUDENTA TO: ", mj.pesel);
  22.     }
  23. }// koniec public class MasterJedi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement