Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

very simple java question!!

  • 04-04-2003 11:53PM
    #1
    Closed Accounts Posts: 302 ✭✭


    help! please!

    'return a value' - what does this mean? how is it done?
    I don't mean getting something to print out a sentence.

    the problem i have is getting values out of 2 stacks and putting them into a queue. Nightmare...

    I'm bbbbeeeeeeggggggging for help so I can have time go out tomorrow night( problem due on monday!).

    any thoughts greatly appreciated.

    curadh


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    To 'return a value' can either mean create a function that returns a value...

    eg.

    public String foobar() {
    return "This my return value";
    }

    or it could mean your application has to return a value based on data passed in and processed.

    btw, before the hordes with flaming torches come. People here tend not to answer homework questions on the board unless you can show you have actually done some work on it.


  • Closed Accounts Posts: 302 ✭✭curadh


    thanks man. finally got it done two minutes to midnight. The golden goose was on the loose for a while. I think I was making a bigger deal of 'return' than it was worth.


Advertisement