[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Manipulating extracted data from a csv file help!!!

Asked by spodge in Java Programming Language

Tags: csv, filereader, java, manipulating

I am trying to extract certain numerical data from a csv file and then manipulate that data, so far I have managed to code the program so I can dispay all the data from the file once the program runs, but i only need a specific piece of that data and I can't get it to work!

I'm sure I need to use sub string and parse int but as i'm very new to java i'm completely lost, I also need to arrange the number data into set ranges i.e. 0-9, 10-19, ...., up to 90-99 and find the average number and display it all to screen please can someone help me!?

here is my code so far:-

import java.io.*;
public class Results
{
public static void main(String[]args)
{
 String line;      //used to read in a line at a time
      
 try
 {
      

File inFile = new File("results.csv");  //create a file object linked to the actual file
             
FileReader reader = new FileReader(inFile); //creates input stream
            
            
BufferedReader buff = new BufferedReader (reader);

line = buff.readLine();      //read first line
while (line != null)            //null value returned when no more to be read
{
 System.out.println(line);      //display int value
 line = buff.readLine(50,52);            //get next value
}
}
catch (IOException e)
{
System.out.println("Error has occurred: " +e);
}
}
}  


 Spodge pls reply asap anybody!

[+][-]05/10/04 08:42 PM, ID: 11037041Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Java Programming Language
Tags: csv, filereader, java, manipulating
Sign Up Now!
Solution Provided By: maheshexp
Participating Experts: 2
Solution Grade: A
 
[+][-]05/10/04 08:43 PM, ID: 11037053Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/10/04 09:03 PM, ID: 11037168Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/11/04 12:50 AM, ID: 11038166Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/11/04 02:08 AM, ID: 11038549Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/11/04 03:34 AM, ID: 11038983Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/11/04 05:20 AM, ID: 11039631Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/11/04 07:08 PM, ID: 11046208Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08/04/04 07:49 AM, ID: 11716144Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08/09/04 10:29 AM, ID: 11755056Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81