Results 1 to 4 of 4
Thread: Calling Methods
- 12-17-2007, 04:48 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 12
- Rep Power
- 0
- 12-17-2007, 05:18 AM #2
Member
- Join Date
- Dec 2007
- Posts
- 26
- Rep Power
- 0
hope that helpsJava Code:public static void main(String args[]); computemethod(); <----- Calls first method computenextmethod(); <----- Calls second method public void computemethod() { Method 1. } public void computenextmethod() { Method 2. }
- 12-17-2007, 05:34 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
You have to think about parameters and return values of a method as well. And also you can't referenced non-static method from a static method also.
- 12-17-2007, 06:22 AM #4
Member
- Join Date
- Dec 2007
- Posts
- 8
- Rep Power
- 0
Similar Threads
-
method calling?
By frejon26 in forum New To JavaReplies: 4Last Post: 01-25-2008, 03:38 AM -
Constructor calling
By ravian in forum New To JavaReplies: 2Last Post: 12-22-2007, 06:53 PM -
Calling Java methods form Python
By mew in forum Advanced JavaReplies: 1Last Post: 12-21-2007, 02:30 PM -
Problems with readLine() and calling methods
By peachyco in forum New To JavaReplies: 2Last Post: 11-24-2007, 07:44 AM -
need help calling methods
By lowpro in forum New To JavaReplies: 2Last Post: 11-15-2007, 09:53 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks