Results 1 to 3 of 3
  1. #1
    stutiger99 is offline Member
    Join Date
    Oct 2008
    United Kingdom
    Rep Power

    Default Data Sorting in a .data file using java

    I have a .data file (called that has around 100,000 values listed in it. I would like to be able to use some form of filereader programme in java that does 3 things with the data:

    1. It ignores all values above a certain value, the value is 40,000;
    2. Out of the values below 40,000 the programme should group them into 10 different groups (i.e. <2k, <4k,...., <20k);
    3. It displays the data after the filtering and categorising.

    I am quite new to java so my knowledge is not the best but it would be great if someone could help me out. Don't fancy using Excel for this, far too many values.

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Rep Power

    Default The way this works...

    The way the forum works is that you provide your code/program and ask a specific question about a problem that you have with that code. As for reading a file from Java, there is tons of info on this forum and the internet. This is the first google that I found:



  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    Design and build your program in small steps.
    First, write a program to read and display the values of the file.
    next add logic to separate the values into the separate groups of values.
    Now figure out how to store the values for displaying.
    Finally display the values for each group.

Similar Threads

  1. data loss in the secure file transfer using java
    By antony75 in forum Networking
    Replies: 4
    Last Post: 02-09-2009, 06:56 AM
  2. Accessing Data from a .txt file
    By Oasis13 in forum New To Java
    Replies: 5
    Last Post: 02-01-2008, 12:16 AM
  3. Data array to file
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-16-2008, 10:42 AM
  4. Saving data in an XML file
    By Thez in forum New To Java
    Replies: 1
    Last Post: 12-08-2007, 09:24 PM
  5. Extracting data from an XML file...
    By techno_brains in forum New To Java
    Replies: 1
    Last Post: 07-15-2007, 05:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts