Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: JavaScript notation in Java


Message #1 by "Mark Irvine" <mark@m...> on Mon, 21 May 2001 11:50:48
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

  Return to Index