• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Java 101 ? question about return values (lost)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java 101 ? question about return values (lost)


  • Subject: Java 101 ? question about return values (lost)
  • From: WebObjects <email@hidden>
  • Date: Fri, 20 May 2005 18:19:59 -0700

Question: I am calling a function (with boolean return value) in an
instantiated class like so...

TaskReview review = new TaskReview(); //TaskReview.java is a class
review.GetRepsData();

....but, "GetRepsData();" is defined to return a value (a boolean).  As you
can see, "review.GetRepsData();" doesn't assign the returned value, and
there are no compilation errors or runtime errors.  Why?  Why doesn't the
call to this function w/out assigning the return value create any problems?
And where is my mandated return value disappearing to?

I realize this isn't a Java mailing list, but you've all been very generous
in support of Java questions in context to WO dev, and I appreciate it.

Respectfully,

-Bill Reynolds


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Java 101 ? question about return values (lost)
      • From: Chuck Hill <email@hidden>
  • Prev by Date: HELP: Run log shows nothing after changing from DirectConnect to HTTP
  • Next by Date: Re: Java 101 ? question about return values (lost)
  • Previous by thread: Re: many-to-many insert/edit relationship
  • Next by thread: Re: Java 101 ? question about return values (lost)
  • Index(es):
    • Date
    • Thread