๐ 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