| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1601 人关注过本帖
标题:加分答题
只看楼主 加入收藏
ft5032839
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2004-11-30
收藏
得分:0 

改过程序后:

import javax.swing.JOptionPane;

class Cvs{ public static void main(String args[]){ String output ="" ; int i , j , k ; String input = JOptionPane.showInputDialog("Please Enter String") ; if (input.length() <= 60){ for ( i = input.length() -1 ; i >= 0 ; i--) output+= input.charAt( i ); }

JOptionPane.showMessageDialog( null , output, "Reverse Program", JOptionPane.PLAIN_MESSAGE); System.exit(0); } }

2004-12-07 22:33
sting2005
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2004-9-6
收藏
得分:0 

现在还能提交吗?

刚写了一下详见附件

[attach]1293[/attach]

2004-12-15 17:48
hylzp168
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2004-12-21
收藏
得分:0 
没过四级的人就是惨哦!!

天生排骨!
2004-12-21 20:32
jason444
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2004-12-26
收藏
得分:0 

two function :one is loop and the other one is recursion. Please be kind enough to add some scores to me ^_^

[attach]1350[/attach]

[此贴子已经被作者于2004-12-28 14:18:11编辑过]


QQ: 2 3 2 3 8 7 3 1
2004-12-28 14:14
快速回复:加分答题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017290 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved