Advertisement
polpoteu

PIO Zad2 UtilClass

Oct 24th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. package newpackage2;
  2.  
  3. public class UtilClass {
  4. public static int obliczOdleglosc(int x1, int y1, int x2, int y2) {
  5. PointXY point1 = new PointXY(x1,y1);
  6. PointXY point2 = new PointXY(x2,y2);
  7. int distance = point1.calculateDistance(point2);
  8. return distance;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement