I am reading from a properties file with
actiontimer = properties.getProperty(“action1”);
I get a String back, and want to convert this into a timer to use it later in my program.
private Timer actiontimer
Casting does not work, I get:
Cannot cast from String to Timer
How can I do this casting?
UPDATE:
Formating in the properties file:
action1:12314
Convert the String to an Integer.
now use the [Timer’s Schedule] passing an int as an argument.