![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
A program that calculates the number of characters in the text fileI have been creating a program that calculates the number of characters in the text file.
Question #1: How do I calculate all other characters in the text file? Question #2: How do I calculate average word length and average sentence length? JAVA Code:
Last edited by admin II : 03-Mar-2008 at 05:05.
Reason: Changed [CODE] to [JAVA]
|
|
#2
|
|||
|
|||
Re: A program that calculates the number of characters in the text fileI think that one thing you could do to make it more simple is to load the entire file into a vector of Strings. This way, you can pass that vector to different functions that calculate different things. For example:
JAVA Code:
|
|
#3
|
|||
|
|||
Re: A program that calculates the number of characters in the text fileThanks a lot for your help but I need to use a switch statement, that is why the code looks so boring.
|
|
#4
|
|||
|
|||
Re: A program that calculates the number of characters in the text fileQuote:
JAVA Code:
|
|
#5
|
|||
|
|||
Re: A program that calculates the number of characters in the text fileThanks a lot
|
|
#6
|
|||
|
|||
Re: A program that calculates the number of characters in the text filefor total character...
JAVA Code:
Justin Fox |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Imagegalore -- Free image host, no registration needed! | Qoozz | Free Web Hosting | 0 | 03-Jan-2006 05:47 |
| Program Needed: Perfect Number Program in C language | koool_kid | C Programming Language | 12 | 02-Dec-2005 14:02 |
| Free 1st month / Free setup / No credit card needed...Plans start at 4.95 | LarryIsaac | Web Hosting Advertisements & Offers | 0 | 11-Oct-2003 14:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The