package Examples; /** * Test a custom genetic algorithm. */ public class GATest3 { private int i = 0; public void step() { i++; } public void extra() { } public void test() { if(i == 100) System.out.println("In narrow path."); } private double test_ga() { return Math.abs(100d - i); } }