// Simple client program that does String manipulation public class StringClient { public static void main(String[] args) { System.out.println(dashes("hello")); } // pre: word is not null and not empty // post: returns a string with dashes in between all the characters of word public static String dashes(String word) { String result = "" + word.charAt(0); for (int i = 1; i < word.length(); i++) { result += "-" + word.charAt(i); } return result; } }