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 (firstname.lastname@example.org), 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 (email@example.com), September 18, 2000.
Actually, using Reflection it is possible.
-- snow (firstname.lastname@example.org), February 10, 2003.