
Hello hEllo heLlo helLo hellO
pls reply soon its an emergency

class StringPattern
{
public static void main(String[] args)
{
String st="hello";
StringBuffer buffer=new StringBuffer(st);
for(int i=0;i<st.length();i++){
char ch=Character.toUpperCase(st.charAt(i));
String str=buffer.replace(i,i+1,Character.toString(ch)).toString();
System.out.println(str);
buffer.replace(0,st.length(),"");
buffer.append(st);
}
}
}
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.