File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Getting the largest element in an array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Getting the largest element in an array" Watch "Getting the largest element in an array" New topic
Author

Getting the largest element in an array

WeiJie Lim
Ranch Hand

Joined: Sep 05, 2012
Posts: 85


Why is there no output result ? =/ .

Thanks in advance for any help.
WeiJie Lim
Ranch Hand

Joined: Sep 05, 2012
Posts: 85
Sorry, found out that I stupidly didn't put any system.out.println .. Sorry people.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11160
    
  16

Glad you figured it out.

And believe me, you are much more likely to remember things like this when you figure it out yourself than when someone tells you. Everyone here who has ever written more than 10 lines of code has made such mistakes...It's part of the learning process.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting the largest element in an array
 
Similar Threads
Finding the biggest number using java
Finding Nth Largest element of an array without sorting
2d arrays help
problem using toString()
need help about command line arguments