Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. personPola
  2. package ludzieeeee;
  3.  
  4. public class personPola {
  5. String fn;
  6. int wiek;
  7. String ln;
  8. double weight;
  9.  
  10. public personPola(String fn, String ln,int wiek, double weight ) {
  11. this.fn = fn;
  12. this.ln = ln;
  13. this.wiek = wiek;
  14. this.weight = weight;
  15. }
  16.  
  17. }
  18.  
  19.  
  20. person
  21. package ludzieeeee;
  22.  
  23. public class Person {
  24.  
  25. public static void person(String[] args) {
  26. personPola person = new personPola("Maks", "Rogalski", 14, 55);
  27.  
  28.  
  29.  
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement