您的位置:程序门 -> java -> j2se / 基础类



测试看看可不可以有缩进


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


测试看看可不可以有缩进[已结贴,结贴人:journeydj]
发表于:2007-01-29 18:29:13 楼主
/public   class   exceptiondemo   {
/ static   int   caculate(int   a,int   b){
/ int   c=a/b;
/ return   c;
/ }
/ public   static   void   main(string   args[]){
/ try{
/ //静态方法最好用类名调用.
/ int   c=exceptiondemo.caculate(9,0);
/ system.out.println(c);
/ }
/ catch(exception   e){
/ system.err.println( "异常: "+e.tostring());  
/ e.printstacktrace();
/ }
/ }
/}
发表于:2007-01-29 18:29:431楼 得分:0
怎么发都没缩进   好多帖子看的眼晕   真郁闷
发表于:2007-01-31 10:55:192楼 得分:0
没有


快速检索

最新资讯
热门点击