package lab_6; public class q2 { public static String toUpper(String str) { return str.toUpperCase(); } public static String reversStr(String str) { str = new StringBuilder(str).reverse().toString(); return str; } public static String toNumber(String str) { str = str.replaceAll("O", "zero"); str = str.replaceAll("S", "\\$"); str = str.replaceAll("L", "1"); return str; } public static String beginAndEnd(String str) { str = "***" + str + "***"; return str; } }