Horje
intersection of two arrays java Code Example
intersection of two arrays java
 public 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
Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found Code Example Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found Code Example
settext java Code Example settext java Code Example
greater than sign in java Code Example greater than sign in java Code Example
how to create a 2d arraylist java Code Example how to create a 2d arraylist java Code Example
arraylist vs vector in java Code Example arraylist vs vector in java Code Example

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