java - How to get hours and minutes from a String variable ? -
I have a In this way, try through the method, string time <"13:10" . I was wondering how I would go best about getting hours and minutes and converting them into an integer i.e. int hours = 13, int minute = 10. I know that loop will not be the most effective way, Is anyone easy?
string Tym = "13:10"; String [] time = time Source (":"); Int time = intangible.center (time [0] .tem ()); Int min = intiar.press (time [1] .tim ());
Comments
Post a Comment