java - parse ArrayList to Date -


this question has answer here:

i have array list string , convert in date. seems 'parse' cannot used this, within following piece of code:

list<string> eventslist = arrays.aslist("2015-06-02 00:15", "2015-06-02 22:15", "2015-06-03 00:18"); list<date> eventsdate = new simpledateformat("y-m-d h:m").parse(eventslist); 

but doesn't work.

could me please?

there's no parse method list<string> parameter why code won't compile.

there's parse accepts string. can use loop or stream result need.

further reading on available methods of simpledateformat can done here.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -