Alan Morgan wrote: > Since Java doesn't allow function overloading that clearly can't be > the way. J2SE 5.0 allows generic classes and functions that operate > on generic containers. There are some gotchas, but it's not drastically > more complex than the original int-only java code.
Doesn't Java restrict generics to only operate on reference types so you can't produce a generic binary search that operates on arrays where the item type may be int? Neil -- http://mail.python.org/mailman/listinfo/python-list