Skip to content

Commit 26074d5

Browse files
Intersection of two arrays
1 parent 90b5125 commit 26074d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/leetcode/easy/IntersectionOfTwoArraysII.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void main(String[] args) {
2121
int[] nums1 = {1, 2, 2, 1};
2222
int[] nums2 = {2, 2};
2323
int[] result1 = intersect(nums1, nums2);
24-
System.out.print("Intersection of nums1 and nums2: ");
24+
System.out.print("Intersection of nums1 and nums2 is: ");
2525
for (int num : result1) {
2626
System.out.print(num + " ");
2727
}
@@ -31,7 +31,7 @@ public static void main(String[] args) {
3131
int[] nums3 = {4, 9, 5};
3232
int[] nums4 = {9, 4, 9, 8, 4};
3333
int[] result2 = intersect(nums3, nums4);
34-
System.out.print("Intersection of nums3 and nums4: ");
34+
System.out.print("Intersection of nums3 and nums4 is: ");
3535
for (int num : result2) {
3636
System.out.print(num + " ");
3737
}

0 commit comments

Comments
 (0)