public class MainClass {
public static void main(String[] args) { for (int i = 32; i < 127; i++) {
System.out.write(i);
if (i % 8 == 7)
System.out.write('\n');
else
System.out.write('\t');
}
System.out.write('\n');
}
}
解决方案 »
- 如何利用JEditorPane 的 setPage来访问QQ空间
- 如何做一个程序当点关闭按钮时不退出而是在任务栏的显示一个小托盘
- 我用dataInputStream.readUTF()可以读出值,为什么改用BufferedReader.readLine()就不行了捏?
- 查询值的数目与目标字段中的数目不同
- 用JAVA访问共享文件系统
- 关于Socket client与Socket Server间通信的问题!急!!!
- JBuilder的使用
- 请问java applet程序用appletviewer运行正常,而放在网页中运行就没有显示,错在那里呢?急急急,送20分啊
- BeautyEye, 界面定制
- 为什么实际测试LinkedList各项性能都要弱于ArrayList?
- ResultSet 有没有选择数据行的限制??
- 如何调用启动的线程?
40{TAB}41{TAB}42{TAB}43{TAB}44{TAB}45{TAB}46{TAB}47{ENTER}
.....
( ) * + , - . /
0 1 2 3 4 5 6 7
8 9 : ; < = > ?
@ A B C D E F G
H I J K L M N O
P Q R S T U V W
X Y Z [ \ ] ^ _
` a b c d e f g
h i j k l m n o
p q r s t u v w
x y z { | } ~
以下是API文档里对于write方法的说明
write
public void write(int b)将指定的字节写入此流。如果字节为新行且启用了自动刷新,则调用 flush 方法。
要注意按给定写入字节;要写入将根据平台的默认字符编码转换的字符,请使用 print(char) 或 println(char) 方法。