Integer: equals(Object obj) : Integer « java.lang « Java by API
- Java by API
- java.lang
- Integer
Integer: equals(Object obj)
/*
* Output:
true
*/
public class MainClass {
public static void main(String args[]) {
Integer iobj1 = new Integer(5);
Integer iobj2 = new Integer("5");
System.out.println(iobj1.equals(iobj2));
}
}
Related examples in the same category