Array of function pointers in Java
Posted
by Waltzy
on Stack Overflow
See other posts from Stack Overflow
or by Waltzy
Published on 2010-05-02T01:48:34Z
Indexed on
2010/05/02
1:57 UTC
Read the original article
Hit count: 212
I have read this question and I'm still not sure whether it is possible to keep pointers to methods in an array in Java, if anyone knows if this is possible or not it would be a real help. I'm trying to find an elegant solution of keeping a list of Strings and associated functions without writing a mess of hundreds of 'if's.
Cheers
edit-
'functions' changed to 'methods', seems to bug people.
© Stack Overflow or respective owner