Thread
:
Writing generic methods
View Single Post
#
3
(
permalink
)
12-31-2007, 05:28 AM
spoon!
Member
Join Date: Dec 2007
Posts: 12
it would help more if you told us what this method should do
you could use generics like this:
Code:
public static <E> E startProcess(E a) { ... }
but you won't be able to do very much with the argument unless you know what type it is
spoon!
View Public Profile
Send a private message to spoon!
Find all posts by spoon!