Java tutorial
//package com.java2s; public class Main { public static String normalizeSetterName(String name) { if (name.startsWith("set_")) { return name.substring(4); } else if (name.startsWith("set")) { name = name.substring(3); return name.substring(0, 1).toLowerCase() + name.substring(1); } else if (name.startsWith("Set")) { return name.substring(3); } else { return name; } } }