This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

canonical string representation  RSS feed

 
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
Sheriff
Posts: 24217
38
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
Boost this thread!