|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectLongestWord
TIE120 Programming 2, Exam 17.3.2004, Question 3, Example solution.
| Constructor Summary | |
LongestWord()
|
|
| Method Summary | |
static java.lang.String |
getLongestWord(java.lang.String fileName)
Return the longest word of the text file. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LongestWord()
| Method Detail |
public static java.lang.String getLongestWord(java.lang.String fileName)
throws java.io.IOException
fileName - the name of the file to read from.
java.io.IOException - if an I/O error occurs.public static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||