RSS feed
[root]
/
util
/
bruceeckel
/
com
/
code
/
TI Pattern
/
software design
/
document
login:
password:
title search:
Search this site
Enter your search terms
Web
www.carfield.com.hk
Submit search form
Prev
Next
Wed Dec 26 16:00:00 GMT 2001
StringList
//: com:bruceeckel:util:StringList.java // General-purpose tool that reads a file of text // lines into a List, one line per list. package com.bruceeckel.util; import java.io.*; import java.util.*; public class StringList extends ArrayList { public StringList(String textFile) { try { BufferedReader inputs = new BufferedReader ( new FileReader(textFile)); String line; while((line = inputs.readLine()) != null) add(line.trim()); } catch (IOException e) { e.printStackTrace(System.err); } } } ///:~
(google search)
(amazon search)
1
2
3
second
download zip of files only
Prev
Next