The above classes are from a book I am reading.
Please tell me in the constructor of the LogEntry class, the tokenize() of the LoglineTokenizer class is called.When it is called the parameters logline,dataValues are passed.In the tokernize() method the tokens.countTokens()==dataLine.length is checked.How can this become true?.How are these two countTokens and dataLine.length become equal?.The array dataValue is passed to the tokenize method and it is received by the dataLine array local parameter, the changes done in the dataLine are reflected in the dataValue array.Are arrays passed by value in
Java as default?
Thanks Varuna
[ November 06, 2008: Message edited by: Varuna Seneviratna ]