public static boolean isKanji(char chr){
  String[] pinyinStr=null;
  try {
    pinyinStr=PinyinHelper.toHanyuPinyinStringArray(chr,format);
  }
 catch (  BadHanyuPinyinOutputFormatCombination e) {
    e.printStackTrace();
  }
  return (null == pinyinStr) ? (false) : (true);
}

public static boolean isKanji ( char chr ) { String [ ] pinyinStr = null ; try { pinyinStr = PinyinHelper . toHanyuPinyinStringArray ( chr , format ) ; } catch ( BadHanyuPinyinOutputFormatCombination e ) { e . printStackTrace ( ) ; } return ( null == pinyinStr ) ? ( false ) : ( true ) ; }
judge chr is kanji
