문자열 자르기 썸네일형 리스트형 JAVA - String 값 한글자씩 표시해보기(타이핑 효과) String str = "abcdef"; str의 값을 한 글자씩 조금의 딜레이를 주어 화면에 나오게 하려면 public class Test { public static void main(String[] args) { Runnable r = new Runnable() { @Override public void run() { String str = "abcdef"; try { for (int i = 0; i < str.length() + 1; i++) { System.out.println(str.substring(0, i)); Thread.sleep(100); } } catch (InterruptedException e) { e.printStackTrace(); } } }; r.run(); } } str... 더보기 이전 1 다음