~ Jeff Yan ~
~ Jeff Yan ~
Jeff Yan wrote:my posts never seen to get answered! lol, is there anyone online that can help???
~ Jeff Yan ~
Jeff Yan wrote:but why isnt the data inside the array from the readFile method?
~ Jeff Yan ~
Jeff Yan wrote:right, im with you so far, but how do i do that, would i use a for loop using data.length and then this.data[i] or something like that or is there a predefined method?!
~ Jeff Yan ~
Please! You got a reply in about half an hour. Have a look at this FAQ.Jeff Yan wrote:my posts never seen to get answered! lol, is there anyone online that can help???
John de Michele wrote:
You should program against interfaces rather than implementations:
Well, if you write code using List variables you must be careful to make sure that it will work equally well regardless of which actual object you plug in. Say you make heavy use of the random accesses available in List, then your code will work perfectly fine with an ArrayList but it will be a disaster with a LinkedList.
By the way why didn't you suggest the Collection interface rather than List?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |