#19 For Loop in Java
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Unlock all features
FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.
Related videos
Java 25 is here
Telusko
61.2k views
Docker for Java Developers
Telusko
114.1k views
Jenkins for Beginners
Telusko
50.3k views
Java 24 is here and it's fun
Telusko
63.3k views
Java For Programmers in 2 hours
Telusko
180.9k views
Tree Implementation in Java | DSA
Telusko
108.7k views
Java Marathon | Live for 7 hours
Telusko
51.9k views
Git For Beginners
Telusko
491.2k views
#95 Comparator vs Comparable in Java
Telusko
344.2k views
#94 Map in Java
Telusko
169.2k views
Top Comments (10)
Please sir make Data Structure and Algorithm Course in Java.
real-time examples are very confusing sometimes it all messes up , better if you have some prepared examples but really I enjoy your lectures sir and learn something extra !
Calendar with AM and PM supported : class Hello { public static void main(String args[]) { for (int i = 1; i <= 5; i++) { System.out.println("Day " + i); for (int j = 9; j < 18; j++) { int endTime = j + 1; System.out .println( " " + (j > 12 ? j - 12 : j) + (j >= 12 ? " PM" : " AM") + " - " + (endTime >= 12 ? (endTime == 12 ? endTime : endTime - 12) + " PM" : endTime + " AM")); } } } }
🎯 Key Takeaways for quick navigation: 00:00 🔄 *For Loop Introduction* - Introduction to the for Loop in Java. - Comparison with while loop structure. - Overview of initialization, condition, and increment statements in for Loop. 01:13 🔄 *For Loop Syntax* - Explanation of combining initialization, condition, and increment statements in a single line. - Differentiating for Loop from while loop regarding this syntax. - Practical demonstration of a simple for Loop example. 02:35 🔄 *Working of For Loop* - Understanding the execution flow of for Loop. - Demonstrating the role of initial value, condition check, and increment in a for Loop. - Practical example of printing values in both increment and decrement order. 04:51 🔄 *Common For Loop Syntax* - Introduction to a common syntax for for Loop with initialization, condition, and increment statements. - Clarification on using "less than" for ending at a specified value. - Practical example of printing values starting from zero and ending before four. 05:59 🔄 *For Loop for Building a Calendar* - Demonstrating a practical example of using for Loop to build a weekly calendar. - Nested for Loop usage for printing hours in a day. - Addressing challenges and debugging issues during the example. 11:19 🔄 *Execution Sequence in For Loop* - Explanation of the execution sequence in a for Loop. - Debugging demonstration to showcase the order of execution. - Flexibility to skip the initialization or increment statement in the for Loop structure. Made with HARPA AI
Sir you are excellent. 😊
I like the high quality video its great
Can we not start with j=9 , and j<= 17 if u want the time from 9 to 18
Awesome, now I'm even more lost.
sir please do a playlist of dsa with python
You are awesome!!!
Unlock the Data Inside
Turn Videos into Knowledge
- Get FREE 10/day: transcripts, summaries, chats
- Chat with videos, export text & PDF
- $1 free API credit for RAG, chatbots & research
Free forever plan • All features unlocked
Top Comments (10)
Please sir make Data Structure and Algorithm Course in Java.
real-time examples are very confusing sometimes it all messes up , better if you have some prepared examples but really I enjoy your lectures sir and learn something extra !
Calendar with AM and PM supported : class Hello { public static void main(String args[]) { for (int i = 1; i <= 5; i++) { System.out.println("Day " + i); for (int j = 9; j < 18; j++) { int endTime = j + 1; System.out .println( " " + (j > 12 ? j - 12 : j) + (j >= 12 ? " PM" : " AM") + " - " + (endTime >= 12 ? (endTime == 12 ? endTime : endTime - 12) + " PM" : endTime + " AM")); } } } }
🎯 Key Takeaways for quick navigation: 00:00 🔄 *For Loop Introduction* - Introduction to the for Loop in Java. - Comparison with while loop structure. - Overview of initialization, condition, and increment statements in for Loop. 01:13 🔄 *For Loop Syntax* - Explanation of combining initialization, condition, and increment statements in a single line. - Differentiating for Loop from while loop regarding this syntax. - Practical demonstration of a simple for Loop example. 02:35 🔄 *Working of For Loop* - Understanding the execution flow of for Loop. - Demonstrating the role of initial value, condition check, and increment in a for Loop. - Practical example of printing values in both increment and decrement order. 04:51 🔄 *Common For Loop Syntax* - Introduction to a common syntax for for Loop with initialization, condition, and increment statements. - Clarification on using "less than" for ending at a specified value. - Practical example of printing values starting from zero and ending before four. 05:59 🔄 *For Loop for Building a Calendar* - Demonstrating a practical example of using for Loop to build a weekly calendar. - Nested for Loop usage for printing hours in a day. - Addressing challenges and debugging issues during the example. 11:19 🔄 *Execution Sequence in For Loop* - Explanation of the execution sequence in a for Loop. - Debugging demonstration to showcase the order of execution. - Flexibility to skip the initialization or increment statement in the for Loop structure. Made with HARPA AI
Sir you are excellent. 😊
I like the high quality video its great
Can we not start with j=9 , and j<= 17 if u want the time from 9 to 18
Awesome, now I'm even more lost.
sir please do a playlist of dsa with python
You are awesome!!!