A DESCRIPTION OF THE PROBLEM :
It is desirable to avoid creating intermediate objects wherever possible. Static parsing methods for primitive types and their boxed versions, such as Double.parseDouble(String) and Double.valueOf(String), should accept CharSequence rather than String, to halve the number of intermediate objects created (and eliminate substring copying) when breaking a large string into tokens to be passed into these parsing methods.
It is desirable to avoid creating intermediate objects wherever possible. Static parsing methods for primitive types and their boxed versions, such as Double.parseDouble(String) and Double.valueOf(String), should accept CharSequence rather than String, to halve the number of intermediate objects created (and eliminate substring copying) when breaking a large string into tokens to be passed into these parsing methods.