/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String[] A
= {"europe",
"france",
"germany",
"america"};
// your code goes here
int x=2,y=3;
int start_concat = x-1 ; // to account for array index
int stop_concat = start_concat+y;
new_Array
= new String[A.
length-y
+ 1];
for(int i=0; i<=start_concat; i++){
new_Array[i] = A[i];
}
for(int i = start_concat+1 ; i<stop_concat; i++){
new_Array[start_concat] = new_Array[start_concat] + A[i];
}
for(int i =start_concat+1, j=stop_concat ; i< new_Array.length;i++,j++){
new_Array[i] = A[j];
}
for(int i=0; i<new_Array.length; i++){
System.
out.
println(new_Array
[i
]); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCQoJCVN0cmluZ1tdIEEgPSB7ImV1cm9wZSIsICJmcmFuY2UiLCAiZ2VybWFueSIsICJhbWVyaWNhIn07CgkJCgkJU3RyaW5nW10gbmV3X0FycmF5OwoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCQlpbnQgeD0yLHk9MzsKCQlpbnQgc3RhcnRfY29uY2F0ID0geC0xIDsgLy8gdG8gYWNjb3VudCBmb3IgYXJyYXkgaW5kZXgKCgkJaW50IHN0b3BfY29uY2F0ID0gc3RhcnRfY29uY2F0K3k7CgkJCgkJbmV3X0FycmF5ID0gbmV3IFN0cmluZ1tBLmx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