3년전에 작성한 글입니다. 자바 9주차 실습입니다. public class StringBufferEx { public static void main(String[] args) { StringBuffer sb = new StringBuffer("This"); System.out.println(sb.hashCode()); sb.append(" is pencil"); System.out.println(sb); sb.insert(7, " my"); System.out.println(sb); sb.replace(8, 10, "your"); System.out.println(sb); sb.setLength(5); System.out.println(sb); System.out.println(sb.hashCode()); } }...
#
과제
#
자바