Skip to content

Instantly share code, notes, and snippets.

@blubberdiblub
Created September 18, 2018 06:47
Show Gist options
  • Save blubberdiblub/98fa3d1e475dc986026f0c9b6f93361e to your computer and use it in GitHub Desktop.
Save blubberdiblub/98fa3d1e475dc986026f0c9b6f93361e to your computer and use it in GitHub Desktop.
loop framework
class Loop {
public static void main(String[] args) {
sweepLinear(1.5, 2.5, 2);
System.out.println();
sweepLinear(1.5, 2.5, 10);
}
private static void doSomethingWithValue(double value) {
System.out.println(value);
}
private static void sweepLinear(double min, double max, int num_intervals) {
// implementation
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment