Horje
find union and intersection of two arrays in java Code Example
find union and intersection of two arrays in java
static void findIntersection(int arry1[],int arry1size,int arry2[],int arry2size){
    	HashSet<Integer> hs=new HashSet<Integer>();
    	for(int i=0;i<arry1size;i++){
    		for(int j=0;j<arry2size;j++){
    			if(arry1[i]==arry2[j]){
    				hs.add(arry1[i]);
    			}
    		}
    	}
    	
    	System.out.println(hs);
    }




Java

Related
remove all new line and other in string using java Code Example remove all new line and other in string using java Code Example
spring filter exception handling Code Example spring filter exception handling Code Example
how to draw a circle in java swing Code Example how to draw a circle in java swing Code Example
how to draw a triangle in java Code Example how to draw a triangle in java Code Example
assertthat code throws exception Code Example assertthat code throws exception Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6