🚀 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
Nesta página do site você pode assistir ao vídeo on-line Convert Time (mm:ss) to Seconds in Java | Easy Coding Interview Question | Java String Split Example duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário India Free Internship 06 Maio 2026, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 18 vezes e gostou 1 espectadores. Boa visualização!