User Profile

Collapse

Profile Sidebar

Collapse
unknown32
unknown32
Last Activity: Mar 4 '07, 05:19 PM
Joined: Mar 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • unknown32
    replied to Array Sort and occurances
    in Java
    Ok I havnt started using that code yet. But I have a quick question. Look at my code. For some reason my array is storing zeros? Why is that?

    public static void main(String[] args)
    {
    InputFile ifile;
    ifile =new InputFile("C:\\ Documents and Settings\\Owner \\Frequency\\sr c\\test.txt");

    Keyboard kbd;
    kbd = new Keyboard();
    ...
    See more | Go to post

    Leave a comment:


  • unknown32
    started a topic Array Sort and occurances
    in Java

    Array Sort and occurances

    I am currently working on a program that will read ints from a file (no more than 100 on file)sorts them in decending order and counts how many times each number occurs. I'm still a little new to this so be gentle :).
    My input file looks as follows:
    75 85 90 100
    60 90 100 85
    75 35 60 90
    100 90 90 90
    60 50 70 85
    75 90 90 70

    What the program needs to output is:
    100:3
    90:8...
    See more | Go to post
No activity results to display
Show More
Working...