|
well that is my question, from which direction does it start? if from left to right then, 1)it first turns it to a string, then 2) it turns it to a substring then 3) gets the index of it.
if method calling starts from the right then it would make sense to write the code,
string_buff.indexOf(SPECIAL_EXTENSION).substring(s tart,end).toString();
so which way does the virtual machine call the methods?
Last edited by frejon26 : 01-24-2008 at 11:46 PM.
|