How to install both Python 2.x and Python 3.x in Windows

I do most of my programming in Python 3.x on Windows 7, but now I need to use the Python Imaging Library (PIL), ImageMagick, and wxPython, all of which require Python 2.x. Can I have both Python 2.x and Python 3.x installed in Windows 7? When I run a script, how would I “choose” which … Read more

Can I pass an array as arguments to a method with variable arguments in Java?

I’d like to be able to create a function like: class A { private String extraVar; public String myFormat(String format, Object … args){ return String.format(format, extraVar, args); } } The problem here is that args is treated as Object[] in the method myFormat, and thus is a single argument to String.format, while I’d like every … Read more