Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java SE 综合讨论区 » 编程/算法/API  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:一道招聘笔试题 [Re:zhongbangxing]
flying_sun





发贴: 14
积分: 0
于 2007-05-28 15:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
import java.io.*;
public class Testprint
{
public static void main(String args[])
{
int i =1;
String str="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
while(i< 27)
{
charprint testp = new charprint(i,str.charAt(i-1));
testp.printchar();
i ++;
}
System.out.println("27012345678901234567890123456");
}
}
class charprint{
int i;
int j;
char str;
charprint(int num,char str1)
{
this.i = 0;
this.j = num;
this.str = str1;
}

public void printchar()
{
System.out.print(j );
while(i<j)
{
System.out.print(this.str);
i ++;
}
System.out.println();
}
}




菜鸟请教,基本程序调试不通,急急急急急急!!!

话题树型展开
人气 标题 作者 字数 发贴时间
49458 一道招聘笔试题 zhongbangxing 130 2007-05-18 15:17
42954 Re:一道招聘笔试题 aaarong 547 2007-05-18 17:19
41624 Re:一道招聘笔试题 xiaoping8411 508 2007-09-18 19:27
33905 Re:一道招聘笔试题 yusilong860815 16 2008-10-06 16:14
43618 Re:一道招聘笔试题 Yang14 1068 2007-07-11 02:55
41634 Re:一道招聘笔试题 Yang14 1068 2007-07-11 02:56
41534 Re:一道招聘笔试题 dorrenchen 712 2007-07-12 23:09
41298 Re:一道招聘笔试题 dorrenchen 662 2007-07-12 23:13
41176 Re:一道招聘笔试题 wzymiller 511 2007-07-21 22:30
39332 Re:一道招聘笔试题 long_5281 753 2007-11-08 16:32
39690 Re:一道招聘笔试题 weiyidexuan 1057 2007-11-11 01:37
39126 Re:一道招聘笔试题 pubaolin 316 2007-11-12 01:11
39164 Re:一道招聘笔试题 chaostring 477 2007-11-12 18:17
39250 Re:一道招聘笔试题 chaostring 730 2007-11-12 19:03
42872 Re:一道招聘笔试题 xatm092 213 2007-05-19 13:47
39304 Re:一道招聘笔试题 dnorange 416 2007-11-13 22:25
31574 Re:一道招聘笔试题 jackieban 287 2009-04-24 16:26
30782 Re:一道招聘笔试题 楚狂人 465 2009-05-29 15:48
29497 Re:我的解法 bashenxiutian 460 2009-07-26 13:58
42906 Re:一道招聘笔试题 informit 357 2007-05-20 01:16
42977 Re:一道招聘笔试题 133xialiang 792 2007-05-24 09:56
41493 Re:一道招聘笔试题 Yang14 851 2007-07-11 03:00
30408 Re:一道招聘笔试题 sunny9527 840 2009-07-30 17:02
42710 Re:一道招聘笔试题 flying_sun 716 2007-05-28 15:53
42506 Re:一道招聘笔试题 Jcat 14 2007-06-01 10:35
42556 Re:一道招聘笔试题 simleebdg 31 2007-06-01 11:40
42442 Re:一道招聘笔试题 133xialiang 40 2007-06-13 15:14
33505 Re:一道招聘笔试题 newfish 120 2008-10-06 13:51
42204 Re:一道招聘笔试题 liangzi232004 8 2007-06-13 18:32

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923