0

helpppp why doesnt this code work?

class Programme{ static int min(int a, int b) { if(a<b){ return a; } else{ return b; } } public static void main(String[ ] args) { System.out.printIn(min(6,7)); } }

26th Aug 2016, 1:43 AM
Dave Matthew
Dave Matthew - avatar
3 odpowiedzi
+ 1
program is true just change letter 'I' with'l' in println.the letter is L not i.
26th Aug 2016, 4:08 AM
mehdi
0
your main is in the wrong place. make sure its before everything.
26th Aug 2016, 3:05 AM
Aquarius
Aquarius - avatar
0
should be System.out.println not System.out.printIn you wrote capital i instead of small L
26th Aug 2016, 3:45 AM
Tiger
Tiger - avatar