Neil popped this one on the clinic,

can you write a function in java that does the equivalent of this python script

-------snip--------
#!/usr/bin/python

def swap(a,b):
    return b,a

a = 'foo'
b = 'bar'
print a,b
a,b = swap(a,b)
print a,b
------snap---------

turns out to be surprisingly difficult ;-)




This is a Signature: Someday soon it will have clever sayings and URL's


_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to