5.6 Loop For, while, do while Java Tutorial Part 10 | Lecture

///5.6 Loop For, while, do while Java Tutorial Part 10 | Lecture

5.6 Loop For, while, do while Java Tutorial Part 10 | Lecture

FavoriteLoadingAdd to favorites

Recommend Books :

Java468x60

1. Head First Java :
2. Java Complete Reference :

Types of loop in java:
for loop
while loop
do while loop
Types of loop in java:
for loop
The for statement provides a compact way to iterate over a range of values. Programmers often refer to it as the “for loop” because of the way in which it repeatedly loops until a particular condition is satisfied.
while loop
The while statement continually executes a block of statements while a particular condition is true
do while loop
Do while loop is similar to the While loop, but it evaluates the boolean condition after executing the block of the statement.

Check out our website:

Follow Telusko on Twitter:

Follow on Facebook:
Telusko :
Navin Reddy :

Follow Navin Reddy on Instagram:

Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :

Subscribe to the channel and learn Programming in easy way.

Java Tutorial for Beginners:

C Tutorial Playlist :

Android Tutorial for Beginners Playlist :

XML Tutorial :

Design Patterns in Java :

Socket Programming in Java :

Spring MVC Tutorial :

OpenShift Tutorial for Beginners :

Spring Framework with Maven :

Sql Tutorial for Beginners :

String Handling in Java :

Array in Java :

Java Servlet :

Exception Handling in Java :

source

By |2020-02-23T01:54:51+00:00February 23rd, 2020|Java Video Tutorials|22 Comments

22 Comments

  1. Chaganti Sri chandana February 23, 2020 at 1:54 am - Reply

    Reddy sir , How to print the numbers horizontally
    String s= "if u say answer";
    String j;
    System.out.println(j)
    j = s == "if u say answer" ? "Thank u Reddy sir" : "even though thanks" ;
    !
    !
    ..
    ..
    ..
    ..
    Output : Thank u Reddy sir

  2. divyatejaswini vengada February 23, 2020 at 1:54 am - Reply

    why the hell i havent seen these videos when im in my college :'(

  3. SHUV SHAW February 23, 2020 at 1:54 am - Reply

    Very helpful

  4. aRei33 February 23, 2020 at 1:54 am - Reply

    Hi Sir! I read that one of the java books you recommend is the Java the complete reference the ninth edition book if Iā€™m not mistaken and I wanted to get it.. i found out that now there are recent editions.. do you think I should get the recent edition which is the 11th instead of the 9th? Thanks.

  5. Arghya Sahoo February 23, 2020 at 1:54 am - Reply

    How to print all the numbers in a single line ?

  6. Veera Raghava Reddy February 23, 2020 at 1:54 am - Reply

    Sir ! your teaching is awesome, thank you for enlightening tutorials.

  7. Aryan Bansal February 23, 2020 at 1:54 am - Reply

    How to print the first ten series of this(1,-3,5,-7,9….)

  8. Smart Programming February 23, 2020 at 1:54 am - Reply

    nice one sir, keep it up šŸ‘šŸ‘

  9. celebrity SNAP February 23, 2020 at 1:54 am - Reply

    I have a final exam tomorrow and I'm so scared, thank you so much you helped me a lot ā¤ļøā¤ļø

  10. Sharan Singh February 23, 2020 at 1:54 am - Reply

    can we use this code in bluej

  11. Divyanshu Singh February 23, 2020 at 1:54 am - Reply

    sir how u got 15 as a output in dowhile loop when the condition given is only i<10

  12. Piyush Vikas February 23, 2020 at 1:54 am - Reply

    Sir I have a query…..Due to println it is printing the outputs in next line ???????
    what if I use print ???

  13. Piyush Vikas February 23, 2020 at 1:54 am - Reply

    Sir..whats is the difference between String [ ] args and String a [ ]…..I m little confused ????

  14. Faith Biete February 23, 2020 at 1:54 am - Reply

    How do I print this in descending order. I can do this in ascending order by when I try to do this in descending order I cannot get the output. Please help me.

  15. Faith Biete February 23, 2020 at 1:54 am - Reply

    can we do it like this?

    while(i<9){
    System.out.println(i++)
    }

    instead of writing i++ below the System.out.println

  16. Yash Kumar Sati February 23, 2020 at 1:54 am - Reply

    int l=1;
    boolean b = true;
    while (b)
    {
    System.out.println(l);
    l++;
    }

    ERROR I'm Facing: Unreachable Statement

    Please tell me what to do..!! šŸ™
    Please Reply ASAP

  17. Alvaro Mejia February 23, 2020 at 1:54 am - Reply

    you're the best!

  18. pello adhy February 23, 2020 at 1:54 am - Reply

    *
    –**
    *
    can you help me how to print this pattern using nested while loop?

  19. Malik Shah Yousufi February 23, 2020 at 1:54 am - Reply

    this video really helped me to clear loop concept (thank you)

  20. pooja c February 23, 2020 at 1:54 am - Reply

    public class DemoWhileLoop
    {
    public static void main (String args[])
    {
    int i = 1;

    while(i<=4);
    {
    System.out.println(i);
    i++;
    }
    }
    }

    Hi i am not able to get the output kindly anyone hlp me

  21. Divya Gupta February 23, 2020 at 1:54 am - Reply

    Please put a replay/next video option after each video.. it automatically plays next video without asking.. Because sometimes i want to replay the video and listen to a point i missed.

  22. Gaurav Gogoi February 23, 2020 at 1:54 am - Reply

    hello sir ,i am use eclipse,as o/p didnt came for while loop (i<=10)for this command,why sir.

Leave A Comment

*