CrazyEngineers
  • tipical program in java

    Updated: Oct 26, 2024
    Views: 1.0K
    Hello CEans,
    can you please make me understand with this program how this will be executed?
    class HexByte
    {
    public static void main(String args[])
    {
    char hex[]={'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f',};
    byte b=(byte)0xf1;
    System.out.println("b=0x"+hex[(b>>4)&0x0f]+hex[b&0x0f]);
    }
    }
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register