aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 1368
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Print the numbers in Descending order
 
Similar Threads
post increment operator question
JQ + Ques Id : 1002821815364
please explain the program
marcus green mock
Getting problem in declaring static variable.