Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static int getDistance(float _firstX, float _firstY, float _secondX, float _secondY) {
return (int) Math.sqrt(Math.pow(_firstX - _secondX, 2) + Math.pow(_firstY - _secondY, 2));
}
}