Created
September 18, 2018 06:47
-
-
Save blubberdiblub/98fa3d1e475dc986026f0c9b6f93361e to your computer and use it in GitHub Desktop.
loop framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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