Example of method accessing another method


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Example of method accessing another method

  1. #1
    Join Date
    Jan 2005
    Posts
    45

    Example of method accessing another method

    Can anyone give an example of a method accessing another method? Sorry if this may sound stupid, but I'm a Java newbie...

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    Code:
    public void stuff()
    {
        double t = add(42.5,37);
    }
    
    public double add(double x, double y)
    {
        return x + y;
    }


    any more brain busters?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center