I am in the process of creating a public method String toString(). The requirement is to take a randomly generated number which is tenths of seconds (for example 6500) and convert these into int minutes and double seconds. I need to use this format string: “%s t %d mins %.1f secs t %s”. I am struggling to get my head
Tag: string.format
How to make a String.format flag with a variable inside [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question I need to format a numeric String to be of length k, which