Results 1 to 4 of 4
  1. #1
    oneofthelions is offline Member
    Join Date
    Dec 2009
    Posts
    10
    Rep Power
    0

    Default calling method of different project package class

    Hi,

    I need to call a method paste() which is in the different application all together in my company (means different project and package folder, obvious the class is different)
    It is service call and properties are defined in our project folder.

    please give a sample code to write within my method for calling this method.

    Do I create a new constructor?

    Constructor cons = new constructor;
    xxx???

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,086
    Rep Power
    20

    Default

    And they're paying you to write Java?

  3. #3
    sudha rani is offline Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Default

    You have to import the project in which paste() is defined into your project and call it.

    --Sudha

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    You'll need to read Sun's (Oracle) Java tutorial from the start.
    That will make you feel like revising your question somewhat.

Similar Threads

  1. Child-Class Calling a Method in a Parent-Class
    By Blah_ in forum New To Java
    Replies: 5
    Last Post: 09-29-2009, 02:48 AM
  2. Replies: 29
    Last Post: 09-25-2008, 07:55 PM
  3. Calling a method on original class from created class
    By kpedersen in forum Advanced Java
    Replies: 4
    Last Post: 08-20-2008, 12:25 AM
  4. Calling method from another class
    By asahli in forum New To Java
    Replies: 1
    Last Post: 12-15-2007, 06:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •