File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Unicode, octal, hexa..... Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Unicode, octal, hexa..... Help" Watch "Unicode, octal, hexa..... Help" New topic

Unicode, octal, hexa..... Help

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
1. Is there any Method in Java which gives the Unicode value of any characters etc. If there is please let me know what it is. If there isn't any then how to find out what is the unicode value of suppose 'A'. Are we supposed to remember the unicode values. Please let me know.
2. Khalid had shown in his book converting of Octal and Hexadecimal Numbers to Decimal.
How to convert the decimal values to Octal or Hexadecimal values. Please let me know.
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi chandrashekar,
1. You are not expected to know all the Unicode characters; however, you should be familiar with the concept of Unicode escapes (see JLS §3.3) and the escape sequences for character and string litrals (see JLS §3.10.6).
2. I have some notes on bin/oct/hex/decimal conversions at which may help.
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform

Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Wow!! Jane Griscti. You made a wonderful site. I was amazed browsing your site. Thanks for the help. I got the details from your site. The concept is very clear now.

Thanks a lot!
I agree. Here's the link:
subject: Unicode, octal, hexa..... Help
It's not a secret anymore!