Android IDE (AIDE) Support Forum

Wrong responses to some answers in java course

The format ((234+827)<(483-483)); was rejected where as the format (234+827<483-483); was accepted. I have tested this on a known working IDE in a small program and it makes, compiles, and runs no error reported verbose. I have experienced several such incorrect resposes to correct answers. Is it possible that this is a bug. It only seems to happen after I have needed to go back over something due to a minor typo error.
This public class Main
{
public static void main(String[] args)
{
int i = 20;
System.out.println(i);
int j = 10;
System.out.println(j);
int k = i + j;
System.out.println(k);
int x = (i*j);
System.out.println(x);
}
}
also reports as wrong?

Try to do this:

int a = (234 + 827);
int b = (483 - 483);
boolean c = (a < b);
System.out.println((c));

@EduApps , you declared a as int but the assignment will return a boolean value

The response will be true

Oh, sorry this is a mistake! Thanks

1 Like