dizzy94

Untitled

Apr 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. package geometria;
  2.  
  3. public class Punkt {
  4. public double wspolrzednaX;
  5. public double wspolrzednaY;
  6.  
  7. public Punkt(double x, double y){
  8. wspolrzednaX = x;
  9. wspolrzednaY = y;
  10. }
  11. @Override
  12. public String toString() {
  13. return (" wsprzółrzędna X: " + wspolrzednaX + " Y: " + wspolrzednaY);
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment