I am a student trying to implement the DES algorithm.
I have a choice of 2 languages: C & Java.
I did understand the algorithm, but am stuck at the very beginning as ...
In java the char data type is 16 bit's = 2 bytes. In C the char data type is 8 bit's = 1 byte. My problem is I am converting some C library structures into java classes. And I need a java data type that is equivalent to C char data type. C char data type is equal to an unsigned ...
Originally posted by Cindy Glass: [QB]1 byte = 8 bits correct. 1 char = 16 bits (Note that a short is also 16 bits) A string is not a collection of chars in the same way C++ deals with it. It is a squence of Unicode characters. Isn't a char a Unicode character? What's the difference if both are 16 bits? ...
Hello, I cannot figure out how to do the following in java... Lets say I have a char 'z' I need to know its bit pattern and be able to check the value of any bit I haven't been able to find a way to do this in java even though it seem simple. So 'z' is 01111010 I need to ...