![]() |
|
#1
|
|||
|
|||
Not sure where to go from here...I'm trying to write a program that reads lines from a txt file, then prints them out with the number of the line it is in front and a colon afterwards as follows:
1 textFromLine1 : 2 textFromLine2 : etc... The program I wrote, however, calls the text lines up, but puts a one in front of each line, rather than numbering them. I thought I put the number part in right, but I'm confused. Any help? JAVA Code:
Last edited by LuciWiz : 16-May-2008 at 05:03.
Reason: Please insert your Java code between [java] & [/java] tags
|
|||
|
#2
|
||||
|
||||
Re: Not sure where to go from here...'number' is always set to one by this:
JAVA Code:
JAVA Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 15-May-2008 at 05:59.
|
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The