2013년 2월 27일 수요일

how to deal char

1. get char code: cast (int) for char



char = 'ㅎ';
int charCode = (int) char;



2. compare two chars:



char char1='ㄹ';
char char2='ㅌ';

if(char == char2) //do something



3. 'ㅎ' is not same as ininial sound 'ㅎ' of '하나';





댓글 없음:

댓글 쓰기