0
I want program for "file N words concatenate" in java
Input as 3 Good Morning Friends Output as Goodmorningfriends
1 Réponse
+ 6
Use loop.
int number = sc.nextInt();
for(int i = 0; i < number; i++)
output += sc.next();
Input as 3 Good Morning Friends Output as Goodmorningfriends