Path: csiph.com!aioe.org!.POSTED!not-for-mail From: newsgroups Newsgroups: comp.lang.java.programmer Subject: Re: timer task(s) with parameters Date: Tue, 30 May 2017 14:05:09 +0200 Organization: Aioe.org NNTP Server Lines: 13 Message-ID: References: NNTP-Posting-Host: EPoZP2+NnENyz4kAY/s5CA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:36666 On 05/30/2017 01:57 PM, Eric Sosman wrote: > Because messageToShow is `static', it belongs to the entire > class as a whole. There is only one messageToShow, no matter how > many SchedulaaAllarme objects you create; they all share the same > messageToShow value. So ... BINGO ! Thank you ! 1 scheduled for:2017/05/30 14:03:20 [first] 2 scheduled for:2017/05/30 14:03:35 [second] ---->run @ Tue May 30 14:03:20 CEST 2017 ->first ---->run @ Tue May 30 14:03:35 CEST 2017 ->second ---->run @ Tue May 30 14:03:42 CEST 2017 ->first ---->run @ Tue May 30 14:03:57 CEST 2017 ->second