자바기초2009. 1. 23. 21:19
String text = "To bo or not to be, that is the question";
char ch = Character.toLowerCase(text.charAt(5));

// text 문자열로부터 6번째 위치한 글자를 추출하여 소문자로 변환하여 ch 라는 한 문자를 담는 변수에 담는다.

Character.isLetter(ch) // ch 가 글자이면 true를 리턴한다.
Character.isWhitespace(ch) // ch 가 빈칸이면 true를 리턴한다.






Posted by 아마데우스