This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Association of characters with unicodes, integer values  RSS feed

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell from where the character literals using unicodes start and end?
Corresponding intvalue start and end?
Corresponding escapeSequence \ddd start and end?

Regards,
Narendranath
 
Mallesham Karnati
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Naren,
Could you rephrase your question with some examples in a context so that somebody can give the suitable solution?
Regards,
Mallesham
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I got the solution.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since Unicode characters are 2 bytes, the minimum value is zero and the maximum value is 2^16 - 1. I believe the Java syntax uses hexadecimal values to represent Unicode characters. This means that the minimum value is \0000 and the maximum value is \ffff.

Is this the same as the answer you already found?

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!