
My task is to find English words and separate them from a string with concatenated words..for example
AhdgdjHOWAREgshshYOUshdhfh
I need to find if there exists any English words.

Hi Friend,
Try this:
public class SeparateWords{
public static void main(String[]args){
String st="AhdgdjHOWAREgshshYOUshdhfh";
char ch[]=st.toCharArray();
for(int i=0;i<ch.length;i++){
if(Character.isLetter(Character.valueOf(ch[i]))){
if(Character.isUpperCase(Character.valueOf(ch[i]))){
System.out.print(Character.toString(ch[i]));
}
}
System.out.print(" ");
}
}
}
Thanks

I've just used the upper case letters in the string just to highlight existing of English words in the string..Actual task doesn't have any upper case letters
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.