Revert "Revert "Stream test""

This commit is contained in:
eugenefischer
2020-06-11 14:06:24 -05:00
committed by GitHub
parent c8ea19c3dc
commit 31a6ad5cf8
12 changed files with 88 additions and 47 deletions

View File

@@ -75,4 +75,14 @@ public class SortResult {
return nf.format(sortedArray.length);
}
public String getMin(){
NumberFormat nf = NumberFormat.getInstance(Locale.US);
return nf.format(sortedArray[0]);
}
public String getMax(){
NumberFormat nf = NumberFormat.getInstance(Locale.US);
return nf.format(sortedArray[sortedArray.length-1]);
}
}