Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test
- {
- public static void printVertically(String s)
- {
- char[] c = s.toCharArray();
- for(int i = 0;i < c.length;i++)
- {
- System.out.println(c[i]);
- }
- }
- public static void main(String[] args)
- {
- Test.printVertically("hello there!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement