functions passed as argumentsgreenspun.com : LUSENET : Java Programming : One Thread
Is it possible to pass functions as arguments in Java? If so, which is the syntax?
-- annye pearl (email@example.com), August 31, 2000
No, In java the smallest unit is an object. So, create an object with your method(function) and pass the object to the method.
-- Prantor Bora (firstname.lastname@example.org), September 18, 2000.
Actually, using Reflection it is possible.
-- snow (email@example.com), February 10, 2003.