• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unicode value of a String

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,
I've been trying to locate a method that returns a Unicode value of a String ( an int) - so far unsuccessfully. I found one that returns a Unicode value of a character(getNumericValue), but I would have to break the String into characters before I were to use it, which sounds like too much work.
Any suggestions? Thanks in advance.
A.
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you got your work cut out for you. If you step back and think about it, a string could potentially have more than one character so it really wouldn't make sense for String to have a method that returns its Unicode value because there could be more than just one.
If you think it's too much work, let a loop do it for you.
J.Lacar
 
reply
    Bookmark Topic Watch Topic
  • New Topic