Ad
Code
Diff
  • public class BiggerNum{
    
      public static int compare(int a, int b) {
        return (a>b) ? a : b;
      }
    
    }
    • public class BiggerNum{
    • public static int compare(int a, int b) {
    • if(a>b)
    • return a;
    • else
    • return b;
    • return (a>b) ? a : b;
    • }
    • }