i am returning the value but then also it is saying that min method must return the minimum of both numbers.
package com.codegym.task.task02.task0214;
/*
Minimum of two numbers
*/
public class Solution {
public static int min(int a, int b) {
//write your code here
int m2;
if(a>b){
m2=a;
}
else
{
m2=b;
}
return m2;
}
public static void main(String[] args) throws Exception {
System.out.println(min(12, 33));
System.out.println(min(-20, 0));
System.out.println(min(-10, -20));
}
}