Question:

Need Help on Tarah's Javabat?

by  |  earlier

0 LIKES UnLike

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

1 ANSWERS


  1. wrong section, but whats the question? It&#039;s returning an array.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.