Monthly Archives: August 2011

Use of String variable in Java Switch Statement

There is no way to perform a true switch on a String in Java. With the arrival of JDK 5.0 and its implementation of enum, a reasonably close approximation of this can be done using the following code. Create an enum … Continue reading

Posted in Articles | Tagged | Leave a comment

uncaught exception: [Exception… “Not enough arguments” (NS_ERROR_XPC_NOT_ENOUGH_ARGS)

I was testing my web application on FireFox5 , I faced “not enough arguments” issue. During investigation what I found is while opening the page we are hitting actual issues inside ‘addEventListener’ function. I searched web around behavior of ‘addEventListener’ … Continue reading

Posted in Articles, javascript | Tagged | Leave a comment