Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » not errored result
not errored result [message #664163] Thu, 07 April 2011 16:59 Go to next message
synhedionn Mising name is currently offline synhedionn Mising nameFriend
Messages: 15
Registered: March 2010
Junior Member
Hi,

I don't understand why

plat.plateau2ArList(aray);

where ,plateau2ArList returns an ArrayList, why it gives no error,despite of a variable to collect the result, (like 3; gives an error)?

Can I tweak Eclipse for this, how?

[Updated on: Thu, 07 April 2011 17:11]

Report message to a moderator

Re: not errored result [message #664370 is a reply to message #664163] Fri, 08 April 2011 14:57 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 4/7/11 12:59 PM, synhedionn wrote:
> Hi,
>
> I don't understand why
>
> plat.plateau2ArList(aray);
>
> where ,plateau2ArList eturns an ArrayList, why it gives no error,despite
> of a variable to collect the result, (like 3; gives an error)?
>
> Can I tweak Eclipse for this, how?

Because it's not an error to call a method and ignore the return value.
On the other hand, a line like
3;
is an invalid expression according to the Java language specification;
it can't be compiled at all.

Eric
Re: not errored result [message #664467 is a reply to message #664163] Sat, 09 April 2011 08:07 Go to previous message
synhedionn Mising name is currently offline synhedionn Mising nameFriend
Messages: 15
Registered: March 2010
Junior Member
ok,thanks
Previous Topic:how to force eclipse use http instead of http
Next Topic:File associations based on content
Goto Forum:
  


Current Time: Thu Sep 26 03:18:49 GMT 2024

Powered by FUDForum. Page generated in 0.07971 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top