package com.mindprod.example;
import static java.lang.System.*;
/**
* Demonstrate how to use hex literals in Java.
*
* @author Roedy Green, Canadian Mind Products
* @version 1.0 2013-01-05 initial version.
* @since 2013-01-05
*/
public final class TestHexLiterals
{
/**
* Test harness
*
* @param args not used
*/
public static void main( String[] args )
{
byte b = ( byte ) 0x20;
char c = '\u00c9';
short s = ( short ) 0x0fab;
int i = 0xffab;
long l = 0xffabL;
float f = 0x1.0abcdefp3F;
double d = 0x1.0abcdefp3D;
out.println( b + " " + c + " " + s + " " + i + " " + l + " " + f + " " + d );
}
}