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

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

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -