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');
  }
}

解决方案 »

  1.   

    32{TAB}33{TAB}34{TAB}35{TAB}36{TAB}37{TAB}38{TAB}39{ENTER}
    40{TAB}41{TAB}42{TAB}43{TAB}44{TAB}45{TAB}46{TAB}47{ENTER}
    .....
      

  2.   

    ! " # $ % & '
    ( ) * + , - . /
    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) 方法。