I'm pretty new to Java so this question should be pretty easy for most of you guys to answer. For discussion purposes, I have a text file with the following lines that I've read into a 2d array (we'll call said array tableData[][]):
**Begin file
Some string a<tab delimiter> Filename <tab delimiter> Page No\n
Some string b<tab delimiter> Filename <tab delimiter> Page No\n
Some string bbb<tab delimiter> Filename <tab delimiter> Page No\n
Some string bbc<tab delimiter> Filename <tab delimiter> Page No\n
**End file
I simply want to be able to search all elements of tableData[0] (and only tableData[0], which is the first column of my table) for any strings that match "b." Then, I would like to populate a new temporary array with the results returned.
I hope this makes sense. Thanks for your help.
Start Free Trial