
How to print HELLO as in vertical manner

Hi,
Try this:
class HelloExample
{
public static void main(String[] args)
{
String str="HELLO";
char ch[]=str.toCharArray();
for(int i=0;i<ch.length;i++){
System.out.println(ch[i]);
}
}
}
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.