Star Pattern in Java- 1 Program (Logic)

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025
  • #starpattern #starinJava #starLogic
    Star Pattern in java
    Full star and number pattern playlist :
    Star and number Pattern in Java with logic: • Star and number Patter...
    Code repository: github.com/tal...
    Follow on Facebook: / talenteddeveloper
    GitHub:
    github.com/tal...
    Related Queries:
    Star Pattern Programs in Java (with Logic),
    Java Programming Patterns with example (Nested Loop),
    Logic Patterns in Java,
    Pyramid Pattern in Java,
    Star pattern logic,
    Star Pattern Programs in C,
    Star Pattern 6 Program in C Hindi,
    Write a java program to print star pattern?
    Write a java program to print a pyramid pattern of numbers?
    Triangle pattern in java,
    Number Pattern in Java,
    how to print star patterns in java using eclipse, java patterns.
    Java Program to Print Star Patterns,
    star pattern in java,
    pattern programs in java

Комментарии • 147

  • @sarahmokhtar4222
    @sarahmokhtar4222 3 года назад +4

    Took me so long to figure out nested loops, this step by step breakdown has made it super clear for me, thank you!!

  • @tofudelivery9999
    @tofudelivery9999 4 года назад +9

    I really like how you explained while going through the actual change within each variables.

  • @pavithraraji7175
    @pavithraraji7175 4 года назад +4

    The idea of step by step explanation is really awesome 🤩🤩 Thank you !!!

  • @tijanamakic239
    @tijanamakic239 5 лет назад +9

    Very nicely explained, thank you!!

  • @JFSTutorial
    @JFSTutorial 5 лет назад +1

    For more details information check this video
    ruclips.net/video/qr-WmDy73u8/видео.html

  • @WhosaidInvoked
    @WhosaidInvoked 4 месяца назад

    Thank you for the lesson!!

  • @nelumdinusha3812
    @nelumdinusha3812 4 года назад +2

    Explanation is clear 💐❤

  • @RachamalliVijayaDurga
    @RachamalliVijayaDurga 10 месяцев назад

    Your way of explanation is really good brother thank you so much for making these vedeo, its very helpful for all of us.

  • @rezaarian237
    @rezaarian237 3 года назад

    the best explanation ever

  • @nigarcetintas1599
    @nigarcetintas1599 4 года назад +1

    Explanation is perfect🤓😲

  • @Mohanadxd
    @Mohanadxd 5 лет назад +1

    I love u indian man you are my hero !!!!!!!!!!!!!

  • @jawoll3664
    @jawoll3664 3 года назад

    Nice, this helped me with my homework. lol

  • @senthilmuruganr234
    @senthilmuruganr234 4 года назад +1

    Excellent sir

  • @arnavarora3607
    @arnavarora3607 3 года назад +1

    thanks best video for solution

  • @legendarytwister3656
    @legendarytwister3656 4 года назад +1

    i just love you man! thanks!

  • @joshuapauleT
    @joshuapauleT 4 года назад +1

    Thankyou so much idol

  • @sathishappu2201
    @sathishappu2201 3 года назад +1

    Is it possible to write using while and dowhile loop???

  • @nysmulerecords4465
    @nysmulerecords4465 4 года назад +1

    nice bro. Thank for sharing😊

  • @MrGnanavelu
    @MrGnanavelu 4 года назад +2

    What app you use to do these java programs..

  • @hc8797
    @hc8797 4 года назад +1

    I have a question
    outer loop=0
    go inner loop j=0
    print(*)
    update j increment it by one j=1 is 1

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад +1

      hi HC,
      the outer foor loop is responsible for total line (from top to buttom)
      the inner for loop is responsible for left to right in.
      so when j is 1, that means it is greater than 0. So it will call two time.
      First j=0 then j=1.
      So it will print two star in same line(left to right).
      So we are printing star in j(inner loop), so whenever the condition will be satisfied it will print star in inner loop(Yes you are right)

  • @collinskanazache8682
    @collinskanazache8682 2 года назад

    awesomeness

  • @non2614
    @non2614 4 года назад +4

    viva that is useful go ahead and insert video look like this that is clear

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      i am unable to get your point, can you explain more. Are you talking about video editing?

  • @nelumdinusha3812
    @nelumdinusha3812 4 года назад +1

    Thank u so much ❤

  • @Devivl
    @Devivl 2 года назад

    Thank you 🙏 ❤

  • @Pop_a_j_a_y
    @Pop_a_j_a_y 3 года назад

    TQ bro 🤗 💫🤩

  • @hugogabrielmedinatopete1903
    @hugogabrielmedinatopete1903 4 года назад +1

    thanks bro

  • @MrGnanavelu
    @MrGnanavelu 4 года назад +1

    I downloaded eclipse!
    But I want to know how to get run the program in that

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      Hi,
      just check this
      www.javatpoint.com/how-to-run-java-program-in-eclipse

    • @MrGnanavelu
      @MrGnanavelu 4 года назад

      If I give run button - it's coming unable to launch"the selection cannot be launched and there are no recent launches"😩

  • @DorthFromTheNorth
    @DorthFromTheNorth 3 года назад

    Hello! First of all I really appreciate this video it really helped so thank you. Second, I have a specific pattern idk if you've done it already.

  • @adarshamiraje4079
    @adarshamiraje4079 2 года назад

    Thanks

  • @nitinpanchal7
    @nitinpanchal7 4 года назад +1

    SIR ... How to run program step by step For ForLoop I'm Unable to Run Program Like You..... Please Reply 🙏

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      Hi Nitin,
      you have to run the program in debug mode
      ruclips.net/video/AP1ZEgkKoeA/видео.html
      are this video, and after that put breakpoint and run in debug

    • @nitinpanchal7
      @nitinpanchal7 4 года назад +1

      @@TalentedDeveloper Ya Sir it's Working Now .... Thank You So Much Sir...🙏

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      great, 👌
      you are most welcome ☺️

  • @joshuaminta5922
    @joshuaminta5922 3 года назад

    thanks po

  • @VUMADEVI-vk1yc
    @VUMADEVI-vk1yc 4 года назад +1

    Great video..... But it is not visible clearly ☹️

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      ohh, please change the resolution quality. It will be in 1080p

  • @hikamiawnyan
    @hikamiawnyan 3 года назад

    Thanks sir

  • @wilmanfirmansyah8051
    @wilmanfirmansyah8051 3 года назад

    help me.
    System.out.print in dart ??

  • @cheickamadoukaba113
    @cheickamadoukaba113 4 года назад +2

    Hello guy! Can u more explain please how to implante "*" from i to j I can't get that part.
    Thank you!!!

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      Hi Cheick,
      which part you didn't understand can you explain more?

    • @cheickamadoukaba113
      @cheickamadoukaba113 4 года назад +1

      @@TalentedDeveloper from this time of video 3:10s how did get the stars "*" in "j" I can't understand which command did u use, can u explain more please!!!!

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      you need to understand after 3:10s??

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      i am going to explain in detail

    • @cheickamadoukaba113
      @cheickamadoukaba113 4 года назад

      @@TalentedDeveloper Yes

  • @subashpokhrelofficial
    @subashpokhrelofficial 4 года назад +1

    how can we print 5 applying the while loop?
    54
    543
    5432
    54321

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      import java.util.Scanner;
      public class MainClass {
      public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      System.out.println("How many rows you want in this pattern?");
      int rows = sc.nextInt();
      System.out.println("Here is your pattern....!!!");
      for (int i = rows; i >= 1; i--) {
      for (int j = rows; j >= i; j--) {
      System.out.print(j + " ");
      }
      System.out.println();
      }
      sc.close();
      }
      }

    • @subashpokhrelofficial
      @subashpokhrelofficial 4 года назад

      @@TalentedDeveloper can you tell me the way using while loop

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      sure, give me some time. I will send you program

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      import java.util.Scanner;
      public class PatternPgm {
      public static void main(String args[]) {
      int row = 1, column = 1;
      int x;
      Scanner sc = new Scanner(System.in);
      System.out.println("How many rows you want in this pattern?");
      int rows = sc.nextInt();
      System.out.println("Here is your pattern....!!!");
      do {
      x = rows;
      int printNumber = x;
      do {
      System.out.print("");
      x--;
      } while (x >= row);
      column = 1;
      do {
      System.out.print(printNumber + " ");
      column++;
      printNumber--;
      } while (column

    • @subashpokhrelofficial
      @subashpokhrelofficial 4 года назад

      @@TalentedDeveloper thank you, I got the output that i want but its difficult for me to understand.

  • @indrajitpatil4999
    @indrajitpatil4999 6 лет назад +1

    Wow

  • @debankaachari8572
    @debankaachari8572 4 года назад +1

    How to do this pattern using ABCDE??

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад +1

      public class PatternPgm
      {
      public static void main(String[] args)
      {
      int alphabet = 65;
      System.out.println("** Printing the pattern... **");
      for (int i = 0; i

    • @debankaachari8572
      @debankaachari8572 4 года назад +2

      ABCDE
      ABCDA
      ABCAB
      ABABC
      AABCD
      How to do please show now

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад +1

      you have to play with code, Just start alphabet from 65.
      first understand your output, then write your program.
      it is combination of two program
      means one structure is
      ABCDE
      ABCDA
      ABCAB
      so here
      first structure is decreasing from 5, to 4 to 3. And the second structure is appended from A , AB.
      I can't write program right now. I will do it later

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад +1

      public class PatternPgm1 {
      public static void main(String[] args) {
      System.out.println("** Printing the pattern... **");
      for (int i = 5; i >= 0; i--) {
      int alphabet = 65;
      for (int j = 0; j < i; j++) {
      System.out.print((char) (alphabet + j) + "");
      }
      for (int k = 0; k < 5 - i; k++) {
      if (i != 0) {
      System.out.print((char) (alphabet + k) + "");
      }
      }
      System.out.println();
      }
      }
      }
      output
      ABCDE
      ABCDA
      ABCAB
      ABABC
      AABCD
      if you want, you can remove if condition

    • @debankaachari8572
      @debankaachari8572 4 года назад +1

      @@TalentedDeveloper thank you 😊😊

  • @ambikaenterprises1014
    @ambikaenterprises1014 4 года назад +1

    0 q 1 q nhi dale ho plz reply to my question

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      actually arrays ka index always 0 se start hota, so maximum time for loop bhi 0 se rakha jata.
      so agr 1 se start kroge to length me +1 jrur add kar dena.

  • @irfanali-qv3pn
    @irfanali-qv3pn 6 лет назад +1

    How can we make *🌟 * shape with star pattren?

    • @TalentedDeveloper
      @TalentedDeveloper  6 лет назад

      which shape? can you explain more

    • @TalentedDeveloper
      @TalentedDeveloper  6 лет назад

      are you taking about to make start design that will fill with *. am I right?

  • @melody_muzicals
    @melody_muzicals 4 года назад +1

    Tqq

  • @arpanbala3075
    @arpanbala3075 5 лет назад +2

    What is the program in java for pattern like
    4 4 4 4 4 4 4
    3 3 3 3 3
    2 2 2
    1
    2 2 2
    3 3 3 3 3
    4 4 4 4 4 4 4

    • @TalentedDeveloper
      @TalentedDeveloper  5 лет назад

      hey @arpan,
      first you have to declare a variable size.
      then run first decrement loop and also decrement the variable size after then use one increment loop.
      try to see the difference here also, like odd number

    • @TalentedDeveloper
      @TalentedDeveloper  5 лет назад

      if you need tomorrow, i can do program

    • @arpanbala3075
      @arpanbala3075 5 лет назад +1

      @@TalentedDeveloper if u can do it that will be great for me. Thanks sir

    • @TalentedDeveloper
      @TalentedDeveloper  5 лет назад

      please check this.
      talenteddeveloper.co/number-pattern-odd-number-with-pyramid/
      You can copy code and you can modify accordingly.

    • @arpanbala3075
      @arpanbala3075 5 лет назад +1

      @@TalentedDeveloper it shows service unavailable

  • @feornopia7474
    @feornopia7474 4 года назад +1

    I cant see the code its too far

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      please increase the video quality. Code is already added in description

  • @chinnaphatlin9284
    @chinnaphatlin9284 2 года назад

    bro can you copy paste all the codes on this comment please so I can copy it into my java:).

  • @MrGnanavelu
    @MrGnanavelu 4 года назад +1

    If I give run button - it's coming unable to launch"the selection cannot be launched and there are no recent launches"😩

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      in left side first select your class.
      You can do one thing, ping me on skype

    • @MrGnanavelu
      @MrGnanavelu 4 года назад +1

      Can u say here only
      I don't have skye

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      no problem,
      check my old video
      ruclips.net/video/C1IsAYMSa4c/видео.html
      ruclips.net/video/h9ngOLu_P5o/видео.html

    • @MrGnanavelu
      @MrGnanavelu 4 года назад +1

      @@TalentedDeveloper I will check tomorrow that video, now I have net issues
      If I have doubt I will clarify tomorrow with u...

    • @TalentedDeveloper
      @TalentedDeveloper  4 года назад

      Ok, thanks

  • @DB-nl9xw
    @DB-nl9xw 4 года назад +1

    Get a microphone

  • @whiteblack549
    @whiteblack549 Год назад

    LOL bad tutorial