I have an algorithm written in Java that I would like to make more efficient. A part that I think could be made more efficient is finding the smallest of 3 numbers. Currentl
Simply use this math function
System.out.println(Math.min(a,b,c));
You will get the answer in single line.