implemented making of random number files in AlgorithmTester, started sorting code

This commit is contained in:
2020-05-30 12:29:30 -05:00
parent 37ad93f370
commit 741d29f148
3 changed files with 103 additions and 7 deletions

View File

@@ -12,7 +12,19 @@ import java.lang.Math;
*/
public class RandomNumberFileMaker {
public RandomNumberFileMaker(String filename, int count, int min, int max){
private String filename;
private int count;
private int min;
private int max;
public RandomNumberFileMaker(String f, int c, int m, int M){
filename=f;
count=c;
min=m;
max=M;
}
public void writeFile(){
try{
File randomNumbers = new File(filename);
if(randomNumbers.createNewFile()==false){
@@ -30,7 +42,6 @@ public class RandomNumberFileMaker {
}catch (IOException ex){
System.err.println(ex);
}
}
}