Hey guys good evening
im new to java and here as well, hope you guys can help me with this:
so the thing is i want to combine 2 int arrays with a size of 5 so the total size would be 10
and put it in a String so that i can see it,
and later on try to compare and clear out the numbers that are common
example:
array1[5] = 1,2,3,4,5
array2=5,6,7,8,9
the numbers that you have inputted are: 1,2,3,4,5,5,6,7,8,9
After execution: 1,2,3,4,5,6,7,8,9
there hope you can help me guys this is what i got so far:
public static void main(String[] args) {
int[] firstArray ={1,2,3,4,5};
int[] secondArray ={6,7,8,9,10};
int first=0;
int second=0;
String combine="";
String una="";
String pang="";
for(int x=0;x<firstArray.length;x++){
una=firstArray[x];
}
}
}