this is my first coding class ever and i'm very new to all this please. I'm trying to create a code that will accept two numbers and return the larger of the two numbers. For e.g if the function is given da integers 7 and 12 the function will return da integer 12. This is the code i've written so far but it's far from being correct.
public class Return
{
public static void main(String[] args)
{
public static int max("int num1, int num2,");
int result;
if (num1 > num2)
result = num1;
else
result = num2;
return result;
}
}