Originariamente inviato da sspietross
[COD]public class Esercizio2 {
public static int[] estraiElementiDistinti(int[]v1,int[]v2) {

int pos=0

for(int i=0 ; i<v1.length; i+=2) {

for(int j=0 ;j < v2.length ; j++)

if (v1[i] ==v2[j] ;

v3[pos]==v1[i] ;

pos ++ ;

}
return v ;
}
} [\COD]
Ma è codice che dovrebbe funzionare?