So this is what I have so far for my vertical string.
public static void main(String[] args) {
(**What do I put in here?**)
}
public static void vertical(String str) {
String vertical = "hey now";
for (int i = 0; i < str.length(); i++) {
System.out.println(str.charAt(i));
}
}
My teacher checked out the "outline" part of my string. What my question here is what do I put under public static void main(String[] args)
(note the parentheses) and make it produce:
h e y n o w
I'm getting the feeling that I need to put a System.out.println
there but I'm just not sure. Any help with producing the above would be greatly appreciated. Thank you very much.
Yes by using vertical (string str) I want to make hey now go vertically down. If I could get the grade just by using /n I would T-T.