🚀 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
En esta página del sitio puede ver el video en línea Convert Time (mm:ss) to Seconds in Java | Easy Coding Interview Question | Java String Split Example de Duración hora minuto segunda en buena calidad , que subió el usuario India Free Internship 06 mayo 2026, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 18 veces y le gustó 1 a los espectadores. Disfruta viendo!