Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //**TEST ONE */
- public class Sieminski4 {
- public static void main(String []args) {
- boolean uniqueMatch = true;
- int[] arr1 = {1,2,3,4,5,6,1,2,3,4,5,6};
- int[] arr2 = {1,1,1,9,8,7,4,4};
- findUniqueMatch(arr1, arr2, uniqueMatch);
- }
- public static void findUniqueMatch(int[] a, int[] b, boolean c){
- c = false;
- for(int i : a) {
- for (int j : b) {
- if (i==j) {
- System.out.print(i + " ");
- c = true;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement