如何判断这个回文呢??编程判断一个字符串是否是回文。回文是指一个字符序列以中间字符为基准两边字符完全相同,如字符序列“ACBDEDBCA”是回文[解决办法]
public static bool Judge(string str) { for (int i = 0; i < str.Length / 2; i++) if (str[i] != str[str.Length - 1 - i]) return false; return true; }