FileDocCategorySizeDatePackage
CastingNumbers.javaAPI DocExample2960Mon Apr 06 18:10:26 BST 1998None

CastingNumbers

public class CastingNumbers extends Object

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

    double
      above = 0.7,
      below = 0.4;
    System.out.println("above: " + above);
    System.out.println("below: " + below);
    System.out.println(
      "(int)above: " + (int)above);
    System.out.println(
      "(int)below: " + (int)below);
    System.out.println(
      "(char)('a' + above): " +
      (char)('a" + above));
    System.out.println(
      "(char)('a' + below): " +
      (char)('a" + below));