LargestInteger.java 452B

123456789101112131415161718192021222324
  1. public class LargestInteger {
  2. public Integer findLargestNumberUsingConditional(Integer[] integers){
  3. int i = 0;
  4. int max = 0;
  5. for(i = 0; i <integers.length ; i++){
  6. if(){
  7. }
  8. }
  9. return null;
  10. }
  11. public Integer findLargestNumberUsingMathMax(Integer[] integers){
  12. return Math.max(integers[0],Math.max(integers[1],integers[2]));
  13. }
  14. }