I want program for "file N words concatenate" in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want program for "file N words concatenate" in java

Input as 3 Good Morning Friends Output as Goodmorningfriends

14th Dec 2017, 4:56 PM
Harshitha.R
Harshitha.R - avatar
1 Answer
+ 6
Use loop. int number = sc.nextInt(); for(int i = 0; i < number; i++) output += sc.next();
14th Dec 2017, 5:15 PM
Meharban Singh
Meharban Singh - avatar