Novello said:
Hello everybody,
Visual Basic has this function:
Chr(2) that is the 0x2 char
How can I get it in java?
For the benefit of those who are not familiar with VB, you should have
explained that the Chr() function takes a integer representing a char code
(which is either ASCII or ANSI, not sure), and returns the corresponding
character.
In Java, you can bypass that function altogether, and do something like:
char myChar = 2;
Which declares a character called "myChar", and assigns it the value 2.
It can simultaneously be thought of as representing the natural number 2,
and the character whose unicode is 2.
- Oliver