Java tutorial
//package com.java2s; public class Main { public static float getDistance(float x1, float x2) { return Math.abs(x1 - x2); } }