+ 1
Why is it not working?
what's wrong https://code.sololearn.com/cb9z8wAYvS7N/?ref=app
3 Réponses
+ 5
public class Program
{
static int num(int a, int b){
return (a>b)?a:b;}
public static void main(String[] args){
System.out.print(num(7, 15));
}
}
+ 1
the line in which you define your method, you have a ;
remove that
make this:
static int num(int a, int b);{
Into this:
static int num(int a, int b){
+ 1
thanks