fork download
  1. class Main {
  2. public static void main(String[] args) {
  3. System.out.println(smallest(1, 3));
  4. }
  5. public static int smallest(int n1, int n2) {
  6. if (n1 < n2) return n1;
  7. else return n2;
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/457223/101
Success #stdin #stdout 0.06s 32308KB
stdin
Standard input is empty
stdout
1