วิธีที่ 1: ใช้ StringBuffer + Character.isUpperCase() วนลูปตรวจสอบแต่ละตัวอักษร หากเป็นพิมพ์ใหญ่ ใส่ underscore ก่อน ตัวอย่าง public class AddUnderscoreBeforeCapital { public static void main(String[] args) { String str = HelloHowAreYouWelcome; StringBuffer sb = new StringBuffe