Java Programming Tutorial 28 – Nested for Loops (Triangles and Pyramids)

///Java Programming Tutorial 28 – Nested for Loops (Triangles and Pyramids)

Java Programming Tutorial 28 – Nested for Loops (Triangles and Pyramids)

FavoriteLoadingAdd to favorites

Check out Pramp:

Java468x60

Let’s talk about nested for loops and making triangles and pyramids. Woo!

Read the blog:

Instagram:
Twitter:
Facebook:
More content:
Support me!

~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~

Subscribe to my newsletter:

Donate!:

Artist: ARTISS
Title: Tropical Summer

source

By |2020-08-03T08:40:50+00:00August 3rd, 2020|Java Video Tutorials|18 Comments

18 Comments

  1. Manny Nikolo August 3, 2020 at 8:40 am - Reply

    This video is sponsored by the illuminate …hahaha

  2. pacco2012 August 3, 2020 at 8:40 am - Reply

    ur voice gets higher pitched in each video

  3. LetzTaco August 3, 2020 at 8:40 am - Reply

    idk man i dont like j or k! i wouldve used c for clare

  4. Johnie Boy August 3, 2020 at 8:40 am - Reply

    Is there anyone explaining the concept of 3 nested for loops??

  5. Brendan Voelz August 3, 2020 at 8:40 am - Reply

    Hey there! Helpful video, keep up the good work! Watch my free Java Essentials programming series to become a skilled Java programmer!

  6. Mars H August 3, 2020 at 8:40 am - Reply

    πŸ˜‚πŸ˜‚ @ β€œit’s all on one line…improved code”

  7. Jurrit van der Ploeg August 3, 2020 at 8:40 am - Reply

    Where can I find the Illuminati link?

  8. Beth Johnathan August 3, 2020 at 8:40 am - Reply

    1:01 Illuminati wants to know your location

  9. Beth Johnathan August 3, 2020 at 8:40 am - Reply

    1:01 Illuminati wants to know your location

  10. TheBliza August 3, 2020 at 8:40 am - Reply

    I'm relearning all of this from almost 15 years ago at this point and the triangle challenge was a fun little lab to solve after the video was done.

  11. efbdvtfbrt August 3, 2020 at 8:40 am - Reply

    1:44 to skip intro

  12. Luqman Hakim August 3, 2020 at 8:40 am - Reply

    I don't understand why sysout at the last make a very big difference if we didn't write it.. because, inside the parentheses is empty.. can anyone help me? Sorry im new to programming

  13. John Doe August 3, 2020 at 8:40 am - Reply

    Hullo,
    what is the problem with this code?
    public class Main {
    public static void main(String[] args) {
    for(int i = 1; i < 11; i++){
    for(int k = 1; k < 11; k++); {
    System.out.println(k);
    }
    System.out.println();
    }
    }
    }
    It apparently is unable to resolve 'k' to a symbol. I tried making 'k' a variable outside of the two forloops and inside of the main method, and the error that resulted was 'Not a statement'.
    This could be happening because I'm using the IntelliJ IDE. I used Eclipse for a while, but it stopped working for no reason.

  14. Archeryring August 3, 2020 at 8:40 am - Reply

    //Nepalese flag
    // πŸ™‚

    public class MySweetProgram {
    public static void main(String[] args) {
    int i;
    int k;
    for (i=9; i >= 0; i–) {
    for (k=i;k>=0;k– ) {
    System.out.print(k + " ");
    }
    System.out.println();
    }
    for (i=0; i <= 9; i++) {
    for (k=0; k <= 9;k++ ) {
    if (k > i) {
    System.out.print("");
    }
    else
    {
    System.out.print(k + " ");
    }
    }
    System.out.println();
    }
    }
    }

  15. Shaun August 3, 2020 at 8:40 am - Reply

    Any reason why your for loops count backwards rather than forwards?

  16. Jim Verspuij August 3, 2020 at 8:40 am - Reply

    So if I'm seeing it correctly, the numbers are printed in horizontal direction and than the next line comes right?

  17. Cody Jarrett August 3, 2020 at 8:40 am - Reply

    Nested loops make my head hurt.

  18. Freedom Lover August 3, 2020 at 8:40 am - Reply

    Finally
    Thank you πŸ˜€

Leave A Comment

*