I wrote a Java (Swing) application on Windows, and tried running it on Mac. But my program stopped at the SimpleDataFormat constructor.
Why does this happen?
I have another question too. What can I using instead of SimpleDataFormat?
SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm | dd.MM.YYYY");
Date dateLastUpdate = dateFormat.parse(lastUpdate.getValue());
AccountInfo accInfo = new AccountInfo(accNumber, apiName, securityWord);
The first line does not execute. The date is precisely in the necessary format.
Your format for parsing should be then
since ‘|’ is to be swallowed by the parser without interpreting.
As for replacements, should you need ones, check out
DateTimeFormatterBuilderfrom Joda Time.