javascript thread: JavaScript notation in Java
Hi,
I have found the following notation very useful in JavaScript:
var months = {'Jan':31, 'Feb':28, 'Mar':31, 'Apr':30};
thus months[Jan] would return 31
However I have been trying to use a similar approach with Java, does
anyone know if this is possible and what the syntax is.
Many thanx
Mark
|





