Fortune Telling Collection - Ziwei fortune-telling - Mao Guangdong Shenzhen

Mao Guangdong Shenzhen

/**

*? Judging Chinese characters

*?

*? @param? oneChar

*? @ Return? Yes, this is China's.

*? @ Author? long-tailed pheasant

*? @ Date? 20 13-7- 1 1

*/

Public? Static electricity Bull? checkCNChar(char? oneChar)? {

What if? ((oneChar? & gt=? \u4e00 '? & amp& amp? oneChar? & lt=? \ u9fa 5’)

||? (oneChar? & gt=? \uf900 '? & amp& amp? oneChar? & lt=? \ufa2d '))

Return? True;

Return? Fake;

}

Public? Static electricity String? DeleteCNChar (string? Source)? {

char[]? cs? =? source . tochararray();

int? Length =? Cs. length;

Charles? []? buf? =? New? char[length];

For what? (int? Me? =? 0; ? Me? & lt length; ? i++)? {

Charles? c? =? cs[I];

What if? (! checkCNChar(c))? {

buf[i]? =? c;

}

}

String? ret? =? New? string(buf);

Return? ret . trim();

}

Public? Static electricity Invalid? main(String[]? args)? {

String? String? =? "Mao? Ziwei? Velosha? Wall. ? Former? Courths? China Plant Image Database ";

String? =? DeleteCNChar (string);

system . out . println(string);

}