![]() |
| ||
| how to sort the output in descending alright.. i have a problem on how to sort the output my code is here: public class Num7the output is simply: all i want to do is to print first 19,18 and so on. what should i modify? |
| ||
| Re: how to sort the output in descending I feel you are posting your class assignments here one by one, while we do not have any problem outright with that there should be some effort from your side that comes across from your query/ problem. We haven't seen any such effort as yet from you on this post. Read this before posting such queries here. |
| ||
| Re: how to sort the output in descending ok, this is my modify code: it display the values i entered on the array backward, and that's what i want, the problem is the value of z, z is always 0; i cant figure out whats the problem, can you help? |
| ||
| Re: how to sort the output in descending In Your code int x,y;are indexes of loop - for. When loops finished x=0 and y=0.Multipy them result is 0. You not using char[] ch={'1','2','3','4','5','6','7','8','9'}; table. More proper is declare table as int.Analyse this: public static void main(String[] args) {quuba |
| All times are GMT -4. The time now is 7:47 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC