User Profile

Collapse

Profile Sidebar

Collapse
elbone2k
elbone2k
Last Activity: Dec 4 '09, 12:20 AM
Joined: Dec 2 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • elbone2k
    replied to Please help me fix this code
    in Java
    I do not know how to implement a class?
    Here is what I think is giving me the error but I'm not sure how to fix it.
    Please let me know what you think about it.
    Thank you.

    Code:
    package lab13;
    import java.util.*;
    import java.io.*;
    public class DataSorting {
       
    public static void main(String[] args) throws FileNotFoundException {
    [U]//DECLARING THE ARRAYS THAT WOULD STORE VALUES[/]
    ...
    See more | Go to post

    Leave a comment:


  • elbone2k
    replied to Please help me fix this code
    in Java
    the problem with the code is that I cannot get the arrays to store the value/strings read in the file.
    I've been going over the code all day and still don't see a problem with it.
    I keep getting this error:
    Code:
    Exception in thread "main" java.util.IllegalFormatConversionException: d != java.lang.Double
    I'm sorry, i'm a beginner at this...

    thanks Frinavale for fixing up my earlier post.. new...
    See more | Go to post

    Leave a comment:


  • elbone2k
    started a topic Please help me fix this code
    in Java

    Please help me fix this code

    I'm trying to write a program that read a file containing student data in this format
    Code:
    studntId | Name     | Major                | GPA  | YEAR    |
    ---------|----------|----------------------|------|---------|
    123456   | John Doe | Computer Science     | 3.5  | Junior  |
    789012   | Mary Boe | Computer Information | 3.7  | Senior  |

    the program is supposed to read the file and organize the data according...
    See more | Go to post
    Last edited by Frinavale; Dec 2 '09, 08:50 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
No activity results to display
Show More
Working...