FileDocCategorySizeDatePackage
Demotion.javaAPI DocExample3913Mon Apr 06 18:10:26 BST 1998None

Demotion

public class Demotion extends Object

Fields Summary
Constructors Summary
Methods Summary
voidf1(char x)

 prt("f1(char)"); 
voidf1(byte x)

 prt("f1(byte)"); 
voidf1(short x)

 prt("f1(short)"); 
voidf1(int x)

 prt("f1(int)"); 
voidf1(long x)

 prt("f1(long)"); 
voidf1(float x)

 prt("f1(float)"); 
voidf1(double x)

 prt("f1(double)"); 
voidf2(byte x)

 prt("f2(byte)"); 
voidf2(short x)

 prt("f2(short)"); 
voidf2(int x)

 prt("f2(int)"); 
voidf2(long x)

 prt("f2(long)"); 
voidf2(float x)

 prt("f2(float)"); 
voidf2(char x)

 prt("f2(char)"); 
voidf3(char x)

 prt("f3(char)"); 
voidf3(byte x)

 prt("f3(byte)"); 
voidf3(short x)

 prt("f3(short)"); 
voidf3(int x)

 prt("f3(int)"); 
voidf3(long x)

 prt("f3(long)"); 
voidf4(char x)

 prt("f4(char)"); 
voidf4(byte x)

 prt("f4(byte)"); 
voidf4(short x)

 prt("f4(short)"); 
voidf4(int x)

 prt("f4(int)"); 
voidf5(char x)

 prt("f5(char)"); 
voidf5(byte x)

 prt("f5(byte)"); 
voidf5(short x)

 prt("f5(short)"); 
voidf6(char x)

 prt("f6(char)"); 
voidf6(byte x)

 prt("f6(byte)"); 
voidf7(char x)

 prt("f7(char)"); 
public static voidmain(java.lang.String[] args)

    Demotion p = new Demotion();
    p.testDouble();
  
static voidprt(java.lang.String s)

 
    System.out.println(s); 
  
voidtestDouble()

    double x = 0;
    prt("double argument:");
    f1(x);f2((float)x);f3((long)x);f4((int)x);
    f5((short)x);f6((byte)x);f7((char)x);