public static void String Detail()
I'm even surprised this compiles. What is the return type of your method? void or String?
Another question is: is your issue finding the number of minutes from a duration, or displaying a string representation of a double number?
If you're struggling with computing the number of minutes from a number of seconds, then it's definitely:
public static double minutesFromSeconds(int seconds) {
return seconds / 60.0;
}
If your issue is getting a string representation of a double number, then it is as trivial as:
String result = minutes.ToString();
The important thing is: never work with any number as a string. Only use a string representation when you need to present it to the user. Using strings to handle numbers in code is one of the worst practices ever.