package class6_1_RuntimeStack_021; public class RuntimeStack { public static void main(String[] args) { RuntimeStack driver = new RuntimeStack(); System.out.println(driver.dist(0, 0, 3, 4)); // 5 } //Note: these methods SHOULD be declare public or private //This is just to match the slide that had VERY limited space. double dist (int x1,int y1,int x2,int y2) { return Math.sqrt(ssd(x1, y1, x2, y2)); } double ssd(int x1,int y1,int x2,int y2) { return sqr(x1-x2)+sqr(y1-y2); } double sqr(int value) { return value*value; } }