0
give an input string.then length of each word and concatenate them together
ex-1:good and bad o/p: 433 ex-2:eclipse for java 0/p: 734
1 Respuesta
+ 2
String input = "good and bad";
String s[] = input.split(" ");
for(String a : s){
System.out.print(a.length());
}