FileDocCategorySizeDatePackage
ByteTest.javaAPI DocExample312Sun Mar 28 19:05:22 BST 1999None

ByteTest

public class ByteTest extends Object

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

    
    for (int i = 0; i<256; i++) {
      byte signedByte = (byte) i;
      int unsignedByte = signedByte > 0 ? signedByte : 256 + signedByte;
      System.out.println(i + "\t" + unsignedByte + "\t" + signedByte);
    }