Can anyone tell me if im doing something wrong ?
public class Jafntekkijafnt
{
public static void main(String[] args)
{
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
int c = Integer.parseInt(args[2]);
if (a == b) (b == c) (c == a) System.out.println("equal");
else System.out.println("not equal");
}
}
It's java programming
I'm trying create a program with three integers that prints equal if all are equal and not equal if they are not.
I know its the 8th line but don't how to get it right.
if(args[0].equals(args[1]) && args[1].equals(args[2]))may be all you need.