Path: csiph.com!aioe.org!.POSTED.hqPgifCF1TaqUfx+6Uvsxg.user.gioia.aioe.org!not-for-mail From: Gioacchino Newsgroups: it.comp.java Subject: =?UTF-8?Q?perch=c3=a8_non_funziona_questo_cast=3f?= Date: Fri, 6 Sep 2019 21:04:12 +0200 Organization: Aioe.org NNTP Server Lines: 20 Message-ID: NNTP-Posting-Host: hqPgifCF1TaqUfx+6Uvsxg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: it X-Mozilla-News-Host: news://nntp.aioe.org:119 Xref: csiph.com it.comp.java:9324 Metodo (List numbers) ... poi in un ciclo: for ( Number n : numbers ) etc e mi da errore, mi dice type mismatch e che non puņ castare (? super number) to number , e mi propone for ( Object n : numbers ) Certamente object č una superclasse, ma non posso usare la stessa classe Number? Grazie