Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2008, 09:26 AM
Member
 
Join Date: Jul 2008
Posts: 20
Rep Power: 0
suprabha is on a distinguished road
Default [SOLVED] max function
hi all,
can you suggest me how to use max function and how to use it in incrementing int values..
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 08-11-2008, 01:11 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Do you want to increment one of max parameter?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-11-2008, 01:14 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
In simple way, do you want to try something like this?

Code:
        for(int i = 0; i < 5; i++) {
            for(int j = 0; j < 5; j++) {
                System.out.println("Max of " + i + " and " + j + " is: " +
                        Math.max(i, j));
            }
        }
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-13-2008, 09:06 AM
Member
 
Join Date: Jul 2008
Posts: 20
Rep Power: 0
suprabha is on a distinguished road
Default
thank you.....
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 08-13-2008, 10:02 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Nice, if you've solve the question please mark thread as solved. It's really helpful to all.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 08-19-2008, 01:57 PM
Member
 
Join Date: Jul 2008
Posts: 20
Rep Power: 0
suprabha is on a distinguished road
Default
i dont know to mark so..how?
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 08-20-2008, 07:39 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
On top of this thread, you can see the "Post Reply" button. Just bellow that button you can see a menu. Click on Thread Tools menu, and you can see few options there.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a little help with a function! Nuluvius New To Java 3 02-08-2008 12:33 AM
Function in a variable beserie New To Java 4 01-07-2008 04:12 AM
I want to add function romina New To Java 1 08-07-2007 06:25 AM
function name osval Advanced Java 1 08-06-2007 09:56 PM
Help with the Dummy Function Felissa JavaServer Pages (JSP) and JSTL 1 07-06-2007 06:03 PM


All times are GMT +2. The time now is 07:12 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org