Originally posted by Stan James:
ArrayList was mentioned. This is a perfect fit if you don't know the size you'll need. For example, if you read a text file and make an array of lines you won't know how many lines there are until you're done. ArrayList will grow itself as you read and add more lines. If you really need an array, you can get an array from the ArrayList when you're done.
Thanks, I have to read from an InputStream. So, I have to put
content into a byte buffer, then translate it into
String or chars.
int byteNum = inputStream.read(buf);
String myString = new String(buf);
regards
[ December 18, 2003: Message edited by: rick collette ]