Java language specification

1. Need most full on-line java language specification.2. How to convert String to int?
[100 byte] By [BrotherFlamea] at [2007-11-26 23:41:46]
# 1
1. http://java.sun.com/docs/books/jls/2. http://java.sun.com/javase/6/docs/api/java/lang/Integer.html
Torajiroua at 2007-7-11 15:09:42 > top of Java-index,Java Essentials,New To Java...
# 2
How to convert String to int?you can use parse int to convert string to integer..
Bairama at 2007-7-11 15:09:42 > top of Java-index,Java Essentials,New To Java...
# 3
> How to convert String to int?> > you can use parse int to convert string to integer..Try it!
prometheuzza at 2007-7-11 15:09:42 > top of Java-index,Java Essentials,New To Java...
# 4
You can convert only string wrapped numbers in to int, not all strings.
Leelavathia at 2007-7-11 15:09:42 > top of Java-index,Java Essentials,New To Java...
# 5
1. http://java.sun.com/docs/books/jls/2. try{int i = Integer.parseInt(String stringToConvert)}catch(NumberFormatException nfe){nfe.printStackTrace();}hope this helps.Rgds
ayusman_dikshita at 2007-7-11 15:09:42 > top of Java-index,Java Essentials,New To Java...
# 6
> You can convert only string wrapped numbers in to> int, not all strings.wrong. It all depends on the algorithm you use and what meaning you wish to assign to the outcome...Take a hashcode for example, you can create one from a string and it is an integer
jwentinga at 2007-7-11 15:09:42 > top of Java-index,Java Essentials,New To Java...
# 7

> > You can convert only string wrapped numbers in to

> > int, not all strings.

>

> wrong. It all depends on the algorithm you use and

> what meaning you wish to assign to the outcome...

> Take a hashcode for example, you can create one from

> a string and it is an integer value.

I think he meant one can only parse strings containing "0-9" to int's.

That is not true of course, because you can parse strings with base > 10.

prometheuzza at 2007-7-11 15:09:42 > top of Java-index,Java Essentials,New To Java...