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();
...
User Profile
Collapse
-
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...
No activity results to display
Show More
Leave a comment: