Search:

Type: Posts; User: Programming_Hobbyist

Search: Search took 0.07 seconds.

  1. Re: Newbie, treating two inputs in a method and returning them?

    The answer is there:
    Returning a Value from a Method (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    public Bicycle seeWhosFastest(Bicycle myBike, Bicycle yourBike,
    ...
  2. Re: Newbie, treating two inputs in a method and returning them?

    Well I don't know how other people would do it, but personally, I'd put those two values in a separate object, and then, return the object.
Results 1 to 2 of 2