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

what "# HexDigits "?  RSS feed

 
RAGU KANNAN
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know the "0x HexDigits". but I don't know about "# HexDigits".
Pls give me some example to understand.

Thanks, Raghu.K
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by RAGU KANNAN:
I know the "0x HexDigits". but I don't know about "# HexDigits"...

Hexadecimal values are represented differently depending on the context. See Wikipedia - Hexadecimal for some examples.

Hexadecimal representation prefixed by # is used in HTML color designations. But in Java, hexadecimals are prefixed by 0x. So I would not expect to see # used on the exam.
[ August 17, 2006: Message edited by: marc weber ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We need more information. What's the context of this question? The Formatter class?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!