implemented making of random number files in AlgorithmTester, started sorting code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user