whats should be the approach

i have a string .

i want to convert it into a long value.

whats should be the approach ?

[107 byte] By [Unknown_Citizena] at [2007-11-27 11:55:13]
# 1

What? Are you serious? What does the String contain?

Long.parseLong? (Or Long.valueOf)

kajbja at 2007-7-29 19:00:41 > top of Java-index,Java Essentials,Java Programming...
# 2

Not being rude, UC, but I've seen a load of your posts, and from what I can work out you're past this stage, aren't you?

georgemca at 2007-7-29 19:00:41 > top of Java-index,Java Essentials,Java Programming...
# 3

given the lack of specifications:

long el = theString.hashCode();

CeciNEstPasUnProgrammeura at 2007-7-29 19:00:41 > top of Java-index,Java Essentials,Java Programming...