Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
    }
}