|
It is not really working how i want to
Hey, it is me again,
i tried the code which i got, but it is not really working as i want to... so i thought i didn't explained clearly my problem.
I have a file which contains number which has to be sorted.
5
6
2
7
3
5
.
.
.
the first number says, how many number i have to sort out. In this case 5. That what i did in my code and called a. Now i have to put the next five numbers, here 6,2,7,3,5 into an array, so that i can sort them out. And there is my problem... i managed to find out the first number, but i don't know how to put the other ones into an array. I wanted to do it in an new method... and with a for-loop like
for(int i = 1; i<=a; i++)
and then sth like
int() field = new int(i);
but it is not really working how i wanted to do it. my first problem is, that i don't know how to get my a into a new method... and then i couldn't do the rest as well...
could anyone help me a bit... that would be really nice
little_polarbear
|