Java tutorial
//package com.java2s; //License from project: Apache License public class Main { static double dif = 1.5; private static boolean checkMove(float f, float g) { double thisdif = f - g; if (Math.abs(thisdif) > dif) { return true; } return false; } }