Results 1 to 4 of 4
  1. #1
    Lufc is offline Member
    Join Date
    May 2011
    Posts
    3
    Rep Power
    0

    Default Method call problem.

    Hi,

    I need help to get the method below "createarticle" to call a a new method called "outprintarticlecreated()" in the same class. The new "outprintarticlecreated()" method should just print out with JOptionPane that a new article has been created. It should be easy, but I cant get it right. Please help me someone!


    public void createarticle(String artId, String name, int instock,
    double price) {
    Register.artikelRegister.put(artId, new Artikel(artId, name,
    instock, price));


    }
    outprintarticlecreated();
    JOptionPane.showMessageDialog(null, "Article created!")
    Last edited by Lufc; 05-10-2011 at 09:27 PM. Reason: Showing more of my problem

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

  3. #3
    Lufc is offline Member
    Join Date
    May 2011
    Posts
    3
    Rep Power
    0

    Default

    Now I read the pages but I still cant get It to work..frustrating. I know that it should be easy but....

  4. #4
    Lufc is offline Member
    Join Date
    May 2011
    Posts
    3
    Rep Power
    0

Similar Threads

  1. call a JSP method
    By sauravsinha in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 09-26-2011, 05:19 PM
  2. How to call this method?
    By Rockefella in forum New To Java
    Replies: 12
    Last Post: 01-20-2011, 05:32 PM
  3. Call Java Method in MS SQL
    By mexyz in forum New To Java
    Replies: 19
    Last Post: 02-17-2010, 02:38 PM
  4. how to call method?
    By leapinlizard in forum New To Java
    Replies: 9
    Last Post: 04-30-2009, 12:55 AM
  5. cannot call private method from static method
    By jon80 in forum New To Java
    Replies: 3
    Last Post: 05-07-2008, 09:37 AM

Tags for this Thread

Posting Permissions

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