u vezi ASCII koda
Asistent je rekao da u polju adr treba da stoji ASCII kod, a getNumericValue vraca
"...Returns the int value that the specified Unicode character represents. For example, the character '\u216C' (the roman numeral fifty) will return an int with a value of 50. The letters A-Z in their uppercase ('\u0041' through '\u005A'), lowercase ('\u0061' through '\u007A'), and full width variant ('\uFF21' through '\uFF3A' and '\uFF41' through '\uFF5A') forms have numeric values from 10 through 35. This is independent of the Unicode specification, which does not assign numeric values to these char values.
If the character does not have a numeric value, then -1 is returned. If the character has a numeric value that cannot be represented as a nonnegative integer (for example, a fractional value), then -2 is returned...."
kako dohvatiti ASCII vrednost za Unicode karaktere, kada postoji vise varijanti Unicode-a? Npr. za konstantu sa vrednoscu 'c' vraca broj 12, a to nije ASCII kod.
Ivo Mihailovic <ivonindza@gmail.com> wrote: Koristi Character i getNumericValue za int, toString za String
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
"...Returns the int value that the specified Unicode character represents. For example, the character '\u216C' (the roman numeral fifty) will return an int with a value of 50. The letters A-Z in their uppercase ('\u0041' through '\u005A'), lowercase ('\u0061' through '\u007A'), and full width variant ('\uFF21' through '\uFF3A' and '\uFF41' through '\uFF5A') forms have numeric values from 10 through 35. This is independent of the Unicode specification, which does not assign numeric values to these char values.
If the character does not have a numeric value, then -1 is returned. If the character has a numeric value that cannot be represented as a nonnegative integer (for example, a fractional value), then -2 is returned...."
kako dohvatiti ASCII vrednost za Unicode karaktere, kada postoji vise varijanti Unicode-a? Npr. za konstantu sa vrednoscu 'c' vraca broj 12, a to nije ASCII kod.
Ivo Mihailovic <ivonindza@gmail.com> wrote: Koristi Character i getNumericValue za int, toString za String
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- References:
- Re: Za asistenta
- From: "Ivo Mihailovic" <ivonindza@gmail.com>
- Re: Za asistenta
Previous by date: Re: Za asistenta
Next by date: Re: Za asistenta
Previous by thread: Re: Za asistenta Next by thread: Re: Za asistenta
Previous by thread: Re: Za asistenta Next by thread: Re: Za asistenta