🚀 In this video, we solve an important Java coding problem:
👉 Convert video length from *mm:ss format to total seconds*
💡 Example:
Input: 01:00 → Output: 60
Input: 13:56 → Output: 836
Input: 02:01 → Output: 121
---
🔹 *Concepts Covered:*
String Handling in Java
split() method
Integer Conversion
Basic Logic Building
---
🧑💻 *Code Used in This Video:*
```java
Scanner s = new Scanner(System.in);
String[] str = s.nextLine().split(":");
Integer n1 = Integer.valueOf(str[0]);
Integer n2 = Integer.valueOf(str[1]);
System.out.println((n1*60)+n2);
```
---
🔥 This question is very useful for:
✔ Coding Interviews
✔ Java Beginners
✔ Practice Questions
---
📌 Don’t forget to:
👍 Like
💬 Comment
🔔 Subscribe for more Java coding videos
---
#Java #Coding #JavaProgramming #InterviewQuestions #LearnJava
On this page of the site you can watch the video online Convert Time (mm:ss) to Seconds in Java | Easy Coding Interview Question | Java String Split Example with a duration of hours minute second in good quality, which was uploaded by the user India Free Internship 06 May 2026, share the link with friends and acquaintances, this video has already been watched 18 times on youtube and it was liked by 1 viewers. Enjoy your viewing!