What's the equivelent of C# 'var' in JAVA? -
this question has answer here:
- c# var keyword equivalent in java? 7 answers
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
Post a Comment