This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Print the numbers in  Descending order Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Print the numbers in  Descending order" Watch "Print the numbers in  Descending order" New topic
Author

Print the numbers in Descending order

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
public class hai {
public static void main(String args[]) {
for( int j=90;j<=60;j--)
System.out.println("j value..."+j);
}
}
It doesn't print the value. Why ???
Raj Young
Greenhorn

Joined: Mar 16, 2005
Posts: 9
you change the condition like j > 60 to print the values in descending order from 90.
 
jQuery in Action, 2nd edition
 
subject: Print the numbers in Descending order