users@codemodel.java.net

Specifying type for Generic classes...

From: Yogesh Dubey <dubey.yogesh_at_gmail.com>
Date: Tue, 14 Apr 2009 19:46:46 +0530

Hi Everyone,

Is it possible to specify a type to a generic variable/method return type.

Example,
   1. Produce a method signature : public List<String> getAll() {}
   2. Declare a varialbel as : List<String> values = new
ArrayList<String>();

-- 
Yogesh Dubey