
a b c d e b c d e c d e d e e

Hi Friend,
Try the following code:
class StringPattern
{
public static void main(String[] args)
{
String st="abcde";
System.out.print(st);
for(int i=1;i<=st.length();i++){
System.out.print(st.substring(i, st.length()));
}
}
}
Thanks
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.