package com.mindprod.example;
/**
* Test unsigned byte calculation
* <p/>
* composed with IntelliJ IDEA
*
* @author Roedy Green, Canadian Mind Products
* @version 1.0
*/
public final class TestUnsignedByte
{
/**
* Test unsigned byte calculation
*
* @param args not used
*/
@SuppressWarnings( { "IncompatibleBitwiseMaskOperation" } )
public static void main( String[] args )
{
byte b = ( byte ) 0xca;
System.out.println( b == 0xca );
System.out.println( b == ( byte ) 0xca );
System.out.println( ( b & 0xff ) == 0xca );
System.out.println( ( b & 0xff ) == ( byte ) 0xca );
}
}