How can I convert values here:
List<String> values = new ArrayList<String>
to :
ArrayList<Custom>
EDIT:
public class Custom {
public Custom Parse(String input) {
// What should I do here?
}
}
show 2 more comments
feedback
|
You could use:
Although it would be better just to add a constructor with a
| ||||
feedback
|
Assuming your list of
| |||
feedback
|
you can find a solution using Google Collections libraries on this thread Converting a List<String> to a List<Integer> (or any class that extends Number) | |||
feedback
|
Custom
class. – Alex Sep 20 at 12:07