C#
string de1 = "hello the world";
int i = de1.Length;
string de2 = "";
for (int j = i - 1; j >= 0; j--)
{
de2 = de2 + de1[j];
}
Console.WriteLine(de2);
Console.Read();
string de1 = "hello the world";
int i = de1.Length;
string de2 = "";
for (int j = i - 1; j >= 0; j--)
{
de2 = de2 + de1[j];
}
Console.WriteLine(de2);
Console.Read();
解决方案 »
- 急急,js中例如跳转至名字为"news"+"从数据库读取的日期格式为yyyy-mm-dd"怎么做?
- 如果在java程序中取得JVM的内存信息呢?
- 奇怪的事,设置了CLASSPATH,还是找不到类
- 关于环境变量的新问题
- 为什么程序不能运行?
- 最近正忙课设,那位大侠帮忙,图的数据结构在J中怎么实现,急!!!谢谢!大家一定帮忙!!
- project2000里的干特图我想复制到word中,怎么弄?
- 怎样从键盘上输入一个长度为20的字符窜(数组)?
- -==swing中如何判断在某一时刻,鼠标是否在某个component之上,而且这一时刻没有鼠标事件产生?==-
- .htc是什么文件?
- java最好的学习平台
- 如何让应用程序在系统启动后就自动运行呢
你试试不就知道啦,这种问题...
可以用de1.charAt(j)
或者用toCharArray()转成一个数组