Java tutorial
//package com.java2s; public class Main { public static String convertVertical(String str) { StringBuilder sp = new StringBuilder(); for (int i = 0; i < str.length(); i++) { sp.append(str.charAt(i)); sp.append('\n'); } return sp.toString(); } }