<p>Fuu cseles kerdes... Asszem scope a valasz. Csak a final cuccok kerulnek az inner latokorebe.</p>
<p>Garami Gábor<br>
<a href="mailto:gabor.garami@hron.me">gabor.garami@hron.me</a><br>
Skype: hron84<br>
Tel: +36 20 235 9621</p>
<p>Sent from my T-Mobile G2<br>
Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.</p>
<div class="gmail_quote">2012.09.11. 13:58, &quot;Peter Verhas&quot; &lt;<a href="mailto:peter@verhas.com">peter@verhas.com</a>&gt; ezt írta:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">A következő kis mintapéldában:<div><br></div><div><div>public class WhyFinal {</div><div><span style="white-space:pre-wrap">        </span>interface Outer {</div><div><span style="white-space:pre-wrap">                </span>String method();</div>
<div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div><span style="white-space:pre-wrap">        </span>public Outer method(final String s) {</div><div><span style="white-space:pre-wrap">                </span>class Inner implements Outer {</div>
<div><span style="white-space:pre-wrap">                        </span>public String method() {</div><div><span style="white-space:pre-wrap">                                </span>return s + &quot; wonka&quot;;</div><div><span style="white-space:pre-wrap">                        </span>}</div>
<div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">                </span>return new Inner();</div><div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div><span style="white-space:pre-wrap">        </span>public static void main(String[] args) {</div>
<div><span style="white-space:pre-wrap">                </span>System.out.println(new WhyFinal().method(&quot;bonka&quot;).method());</div><div><span style="white-space:pre-wrap">        </span>}</div><div>}</div><div><br></div><div>miért kell, hogy a &#39;String s&#39; argumentum final legyen?</div>
<div><br></div><div>
<span style="font-family:Helvetica"><div style="word-wrap:break-word"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div><span style="color:rgb(136,136,136)">--</span><span style="color:rgb(136,136,136)"><br></span><span style="color:rgb(136,136,136)">Verhás Péter</span><span style="color:rgb(136,136,136)"><br></span><span style="color:rgb(136,136,136)"></span><span style="color:rgb(136,136,136)"><a href="mailto:peter@verhas.com" target="_blank">peter@verhas.com</a></span><span style="color:rgb(136,136,136)"><br>
</span><span style="color:rgb(136,136,136)"><a href="tel:%2B36%2830%299306805" value="+36309306805" target="_blank">+36(30)9306805</a></span><span style="color:rgb(136,136,136)"><br></span><span style="color:rgb(136,136,136)">skype: verhas</span></div>
</div></span><br></div></span><br><br>
</div>
<br></div></div><br>_______________________________________________<br>
Javalist mailing list<br>
<a href="mailto:Javalist@lists.javaforum.hu">Javalist@lists.javaforum.hu</a><br>
<a href="http://lists.javaforum.hu/mailman/listinfo/javalist" target="_blank">http://lists.javaforum.hu/mailman/listinfo/javalist</a><br>
<br></blockquote></div>