static void Main(string[] args)
{
Console.WriteLine("输入字符串");
string i = Console.ReadLine();
char iChar = i[1];
string a=null;
foreach (char c in i)
{
a = c + a;
}
Console.WriteLine("输出相反字符串:{0}", a);
Console.ReadKey();
}
public class L{
public static void main(String[] args){
String i="abcde";
int j=i.length();
char[] arr=new char[j];
for(int k=0;k
System.out.print(arr[k]);
}
}
}
不知道这样行不