/* * Methods6.java * * Code added by: name and email * * Practice with static methods, part I */ public class Methods6 { /* * 0) printVertical - takes a string s and prints the characters of * the string vertically -- with one character per line. */ public static void printVertical(String s) { for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); System.out.println(c); } } public static void main(String[] args) { /* Sample test call */ printVertical("method"); } }