Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Random Access File

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Random Access File

    Hai..
    i need to ask a question regarding random access file...
    Currently im doing a project on a simple accounting software about a club.
    The problem is right now, is that i need to do a summation of balance(Grand Total).
    Hence, how do i do a summation of random access file..firstly, is it possible to do?
    secondly, if it is possible,how should i do it? Is there any different coding that i have to know.
    There is only one column for balance where i need to add all of them up to get the Grand Total, but then all the values are prompt.
    I really hope you can figure out the solution to this..
    Thank you..


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Random Access File

    Firstly, yes. It is very possible if you know how the file is structured. See this link for how to access random access files with java. Could you tell us the data structure of the file, possibly post an example?

Similar Threads

  1. Generation of random number using random class
    By JavaPF in forum Java SE API Tutorials
    Replies: 1
    Last Post: December 7th, 2011, 05:46 PM
  2. Random numbers
    By Pooja Deshpande in forum Java SE APIs
    Replies: 8
    Last Post: June 5th, 2009, 04:36 AM
  3. [SOLVED] Random number method implementation
    By big_c in forum Java Theory & Questions
    Replies: 2
    Last Post: April 15th, 2009, 01:10 PM