0

It's saying I have 1 error pls help me find the error

public class Program { public static void main(String[] args) { int x=50; int y=70; double z= math.max(x,y); System.out.println(z); } }

4th Feb 2022, 2:06 PM
Tony Jadesola
7 Réponses
+ 6
Math (caps M)
4th Feb 2022, 2:11 PM
ÃKR
ÃKR - avatar
+ 2
4th Feb 2022, 2:11 PM
Tony Jadesola
+ 2
ÃKR thanks very much .I made a silly mistake
4th Feb 2022, 2:12 PM
Tony Jadesola
+ 2
It should be capital Math.max () Not math.max ()
4th Feb 2022, 4:51 PM
Mohamed
Mohamed - avatar
+ 1
Math.max(x, y) ; Capital M needed
4th Feb 2022, 2:10 PM
Jayakrishna 🇮🇳
+ 1
public class Program{ public static void main(String[] args) { int x = 50; int y = 70; double z = Math.max(x,y); System.out.println(z) } }
19th Feb 2022, 10:28 AM
Himmatullah Ferozee
Himmatullah Ferozee - avatar