Fred Kleinschmidt wrote:You use ";" as the regex for split(). This will leave extraneous leading and/or trailing blank characters in your split strings You should useinstead.
All things are lawful, but not all things are profitable.
Yes it can be done, we just have to figure out how.
Carolin Sha wrote:I am trying to split the strings into components, put each token into appropriate variables, convert where necessary to integer and construct an object.
Please see my code below where I am editing the parseBook() method. Any help would be appreciated.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Anurag Verma wrote:Try matching the parameters of constructor of Book class, also for splitting why not give a try to StringTokenizer?
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |