bit « character « Java Data Type Q&A

Home
Java Data Type Q&A
1.bigdecimal
2.biginteger
3.bit
4.Boolean
5.byte
6.Calendar
7.cast
8.character
9.Date Time
10.Date Time Format
11.decimal
12.Development
13.double
14.enum
15.float
16.hexadecimal
17.Integer
18.Number
19.Number Format
20.primitive
21.SimpleDateFormat
22.string
23.StringBuffer
24.StringBuilder
25.StringTokenizer
26.substring
27.TimeZone
Java Data Type Q&A » character » bit 

1. How does Java 16 bit chars support Unicode?    stackoverflow.com

Javas char is 16 bit, yet Unicode have far more characters - how does Java deal with that ?

2. Iterating bits of a char    stackoverflow.com

Assuming I have char "C" whose ascii code is 0110 0111. How can I iterate over its bits? I would like to build a vector from these 1's and 0's....

3. Bit manipulation of chars in Java or C    stackoverflow.com

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 ...

5. 16 bit char ???    coderanch.com

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 ...

6. BITS, Bytes, char, String    coderanch.com

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? ...

7. Char to Bit String    java-forums.org

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 ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.