operator « character « Java Data Type Q&A





1. JAVA - logical operations on chars    stackoverflow.com

I'm creating a file reading program. As part of this, I need to filter out any char that isn't '0-9' or '.'. Basically, any char other then these needs to trigger ...

2. Help understanding const char* operators in c++    stackoverflow.com

I need to translate some code from c++ to java, and I am not so sure how to deal with the 'const char*' operators. Check code below:

const char* handText;
const char* index ...

3. Using a Char as an operator in a sum    coderanch.com

Hi again, it's me, with another stupid problem. I'm kinda bored so i'm making a calculator in java however, I want to carry out sums replacing an operator such as + with a char with same value. Is this possible? for example, say i have char op ='+'; I could do. int a = b + c; What I want to ...

4. chars using the + operator    coderanch.com

To expand on the concept a little more. The expression undergoes two stages of implicit conversion. 1 - Arithmetic promotion: The right hand side of the equation undergoes arithmetic promotion where everyting is promoted to an int. 2 - Assignment promotion: The equals conversion has really no effect on the primative type of the left hand side of the equation. Assigning ...

5. char and ++ operator    coderanch.com

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - ...

6. using or operator with char in a switch    forums.oracle.com

You could do either: a) use a simple "if" statement with the || (or) operator: if ((substring == 'a') || (substring == 'e') || ...) { // do your combined logic here } or: b) use the fall-through switch: case 'a': case 'e': case 'i': case 'o': case 'u': { // combined logic here }

7. Operator ++ on Character?    forums.oracle.com