What's the equivelent of C# 'var' in JAVA? -


this question has answer here:

is there way use

var foo = "hello world" var bar = 12 

i tried var,val,etc nothing works.

no, there no such type inference in java cf. auto keyword of c++11 , var of c#.

there request submitted while (which mind @ least legitimises question), declined.

reference: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4459053


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -