Сравняване на
public class Application {
public static void main(String args[]) {
Integer x = 400, y = 400;
if (x == y)
System.out.println("Едни и същи");
else
System.out.println("Не са едни и същи");
}
}Не са едни и същиpublic class Application {
public static void main(String args[]) {
Integer x = 40, y = 40;
if (x == y)
System.out.println("Едни и същи");
else
System.out.println("Не са едни и същи");
}
}Едни и същиLast updated