• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I descend this?  RSS feed

 
Emmanuel Cesar Cailo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i need help for descending this code, i don't know how but my friend said that it just need to change the greater than in to less than, but i tried it, it didn't work. so please guys can you help me.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please KeepItDown, also in subject lines.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "descending this code"? Further, what EXACTLY did you change, and what do you mean by "it didn't work"?

You've given us almost nothing to work with to help you fix your problem.
 
Emmanuel Cesar Cailo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
descending is when you put a random # it will output HIGHEST to LOWEST.. instead of LOWEST to HIGHEST...
what i mean is this code is working, the word "it didn't work" is, my friend said to me that to descend a code you just need to change the "<" in to ">" so it can be HIGHEST to LOWEST. but it did not work when i try to use his advice,

and sorry for my bad english, im not good at it.

i just want to know how to output this in to HIGHEST to LOWEST #..
 
davidb smith
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a class that will reverse the order of an array.


 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Emmanuel Cesar Cailo wrote:descending is when you put a random # it will output HIGHEST to LOWEST.. instead of LOWEST to HIGHEST...
what i mean is this code is working, the word "it didn't work" is, my friend said to me that to descend a code you just need to change the "<" in to ">" so it can be HIGHEST to LOWEST. but it did not work when i try to use his advice,

your english is fine - it's your level of detail that is lacking. ;-)

Again, you are saying "It doesn't work". that could mean:

a) it doesn't compile
b) it doesn't run
c) it runs and errors/dies
d) it runs but gives output different from what you are expecting.

each of these require a completely different path to solve. We can't start until we know which you are dealing with.

further, you state that you tried changing the '<' to a '>'. However, I see no less than THREE less-than symbols in the original code you posted. Which of these three did you change? Did you change more than one at the same time?

Again, we have no idea how to help you until you show us what your code you are running actually looks like. without that the best we can do is guess, which is a waste of time and frustrating to you.

so, please do this:

post the exact code you have compiled and are trying to run.
post the output you get, including any and all error messages in their entirety - please don't paraphrase or summarize
post what exactly you are expecting to see as a result.
 
Ashish Schottky
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Original Poster: Did you try to change line 23 of your code?
to sort the way you want?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!