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 Resposta
+ 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