Untitled
unknown
plain_text
3 years ago
1.2 kB
7
Indexable
4 public class HelloWorld {
5
public static void main(String...args) {
8
9
List<Integer>integerList1= new ArrayList<>();
integerList1.addAll(List.of (12,45,89,90,76));
10
11
12
List<Integer>integerList2 = new ArrayList<>();
integerList2.addAll(List.of(12, 45, 89, 90, 70+6));|
13
List<Integer>integerList3 = new ArrayList<>();
integerList3.addAll (List.of (12, 45, 98, 89, 90,76));
List<String> stringList = new ArrayList<>();
14
15
16
for (Integer val : integerlist1)
17
18
19
stringList.add (val.toString());
}
System.out.println("Condition 1:"+integerlist1.equals(integerList1))
20
21
22
23
24
25
26
System.out.println("Condition 2 "+integerList1.equals(integerList2))
System.out.println("Condition 3 :"+integerList1.equals(integerList3.re
System.out.println("Condition 4 "+integerList1.equals(stringList));
Condition 1 :true
Markers Properties Servers Data Source Explorer Snippets Console XJ JUnit
<terminated> HelloWorld [Java Application) C:\Program Files\Zulu\zulu-17\bin\javaw.exe (May 23, 2022, 11:4
Condition 2 :true
Condition 3 : false
Condition 4 :false
I
Et
27
Writable
Smart Insert
11:52:325
insertEditor is loading...