FileDocCategorySizeDatePackage
AsciiArray.javaAPI DocExample502Fri Feb 03 13:06:50 GMT 2006None

AsciiArray

public class AsciiArray extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    
    byte[] b = new byte[(127-31)*2];
    int index = 0;
    for (int i = 32; i < 127; i++) {
      b[index++] = (byte) i;
      // Break line after every eight characters.
      if (i % 8 == 7) b[index++] = (byte) '\n";
      else b[index++] = (byte) '\t";
    }
    b[index++] = (byte) '\n";
    try {
      System.out.write(b);
    }
    catch (IOException ex) { 
      System.err.println(ex);
    }