
String temp="";
for (int i=0,j=1; i<j; i++,j++){
if ((x[i].indexOf((d))!=-1){
temp+=x[i];
temp+=":";
}
{
return temp;
}
what is the output when
d= "life" and
x={"life is full"."great life"."despair life"."lif"."beauty life"."kill"."romance life"."li"}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
