Results 1 to 4 of 4
- 02-13-2011, 08:06 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
About how to just print last 20 words from a input file
I am a beginner for java. Now i have a question anyone would tell me how to write a code about how to print last 20 words from a input file? I was thinking about this like whole afternoon , but still cannot figure it out. SO i holp someone can help me. thx.
- 02-13-2011, 08:10 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 02-13-2011, 08:30 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
can you tell me more specific. i still dont get it. thx a lot.
- 02-13-2011, 08:54 PM #4
Member
- Join Date
- Aug 2010
- Posts
- 70
- Rep Power
- 0
I believe what my good friend Jos is saying is that you need some way to store the words.
I have heard people could possibly use arrays (not sure if you have learned that yet).
But Jos is right - you need a way to store the words - then use that storage to output the words it contains.
I hope that helps some. Any moderators here can correct me if I am wrong, since I am a partial newbie as well.
Similar Threads
-
how to remove word words from txt file?
By amroosobhy in forum New To JavaReplies: 3Last Post: 10-08-2010, 01:49 PM -
Finding words (and more) in another file
By Lund01 in forum Java AppletsReplies: 5Last Post: 09-30-2010, 01:03 PM -
How to print words in different colours?
By veen in forum New To JavaReplies: 7Last Post: 06-10-2010, 04:54 PM -
Read in words from a text file that contains a story
By Pleenen in forum Advanced JavaReplies: 2Last Post: 05-27-2010, 04:34 AM -
Print the text file and print preview them
By Java Tip in forum java.awtReplies: 0Last Post: 06-22-2008, 11:04 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks