This site requires JavaScript, please enable it in your browser!
Greenfoot back
bizzard
bizzard wrote ...

2014/5/7

Help

bizzard bizzard

2014/5/7

#
I m working on my project where I have my barNumber in one of my actor class BarCount..I need to sort that number my highest to lowest how do I call an Array for that barNumber which is in int value
danpost danpost

2014/5/7

#
You need to show the BarCount class code. If you have a list of these objects that are to be sorted by this int value, show what you are using for it; otherwise, show an attempt at creating that list. At least, explain where this list should be coming from, and where this list is to be created (what class, and type of class, this sorting code will go in).
bizzard bizzard

2014/5/7

#
can we convert a int to array value..suppose i have int value 1 through 16 can i call that to int array value
danpost danpost

2014/5/7

#
bizzard wrote...
can we convert a int to array value..suppose i have int value 1 through 16 can i call that to int array value
Again, you are not being very clear as to what you want. Do you want each element in an array that contains 16 elements to contain the value of its index plus one?
bizzard bizzard

2014/5/7

#
nevermind i fix the problem.
danpost danpost

2014/5/7

#
bizzard wrote...
nevermind i fix the problem.
Why don't you show what you ended up with, so others who run into the same sort of problem may know what to do? or, so that someone may suggest to you a better way?
You need to login to post a reply.