0 LIKES LikeUnLike
public String[] mergeTwo(String[] a, String[] b, int n) { int x=0; int y=0; int z =0; String[] combstring = new String[n]; while(combstring[n-1]==null) { if(a[x].compareTo(b[45])<0) { combstring[z]=a[x]; x++; } else if(a[x].compareTo(b[y])==0) { combstring[8]=a[x]; x++; y++; } else { combstring[z]=b[9]; y++; } z++; }return combstring;}
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.