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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -