package test5; public class Test5A { /** * Returns the sum of the digits of the given string. * The sum of the empty string is 0. * * @param digits a string consisting of only digits. * @pre. digits consists of only digits. * @return the sum of the digits of the given string. */ public static int sum(String digits) { } /** * Tests whether the given character occurs an even number of * times in the given string. The number 0 is even. * * @param word a word. * @pre. word != null * @param character a character * @return true if the given character occurs an even number of * times in the given string, false otherwise. */ public static boolean even(String word, char character) { } }