• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

canonical string representation

 
John Davis
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to instantiate an object of the class UUID but the constructor requires a String argument which is a "canonical string representation." This requirement seems to be a bit obtuse. Does anybody know what a "canonical string representation" is, and of what?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd have to tell us where the class UUID is coming from; there's no such class in the J2SE 1.4 API, for example. What package is your UUID class in? There's an org.w3c.util.UUID floating around, but it doesn't have such a constructor.
 
a young
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well since this is the beginner forum I'm gonna assume the answer is easy:
instead of doing this:
UUID yourUUID = new UUID();
do this:
UUID yourUUID = new UUID("Some String goes here");
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic