Top "Char" questions

char typically refers to a character data-type, representing letters of text.

Determine if char is a num or letter

How do I determine if a char in C such as a or 9 is a number or a letter? Is …

c char alphanumeric
How to generate a random String in Java

I have an object called Student, and it has studentName, studentId, studentAddress, etc. For the studentId, I have to generate …

java string random char
How to convert a single char into an int

I have a string of digits, e.g. "123456789", and I need to extract each one of them to use them …

c++ char
Best way to check if a character array is empty

Which is the most reliable way to check if a character array is empty? char text[50]; if(strlen(text) == 0) {} or …

c arrays null char
How can I convert a char to int in Java?

(I'm new at Java programming) I have for example: char x = '9'; and I need to get the number …

java char type-conversion int
Removing "NUL" characters

I have got characters like that in my notepad++ When i am trying to copy whole line, i am actually …

null char notepad++
Return char[]/string from a function

Im fairly new to coding in C and currently im trying to create a function that returns a c string/…

c arrays string char return
In Java how does one turn a String into a char or a char into a String?

Is there a way to turn a char into a String or a String with one letter into a char (…

java string char
How to check if a String contains any letter from a to z?

Possible Duplicate: C# Regex: Checking for “a-z” and “A-Z” I could just use the code below: String hello = "Hello1"; Char[] …

c# windows string char
How to sort with a lambda?

sort(mMyClassVector.begin(), mMyClassVector.end(), [](const MyClass & a, const MyClass & b) { return a.mProperty > b.mProperty; }); I'd …

c++ sorting lambda char constants