Search:

Type: Posts; User: s.sariyan

Search: Search took 0.32 seconds.

  1. Re: Read and write to a text file and calculate values

    It does print the first three line of the txt file and displays the result.


    Could you expand a little bit more on this please!
  2. Re: Read and write to a text file and calculate values

    is it possible to use a for loop to read through the text file and calculate the time. Or a for loop within a for loop !
  3. Re: Read and write to a text file and calculate values

    I am trying to calculate the time for each journey but to do that i need to call the values in the text file. I dont actually know how to add my calculation to the above code. :)
  4. Re: Read and write to a text file and calculate values

    I don't know what to use to set a specific value in the text file, for instant how do I assign the third line of the text file into a variable.
    Thanks I think to compare the result an if statement...
  5. Re: Read and write to a text file and calculate values

    Hi, thanks for your reply, I have no problem with reading and writing the file, i am struggling with calculating the time taken for each journey and compare it with user input. : )
  6. Hi, I am a complete beginner to java...

    Hi, I am a complete beginner to java programming,(root planner) I am trying to write a program which request a time from the user then compares it with the data in the text file. text file contains...
Results 1 to 6 of 13