Star Pattern in Java- 1 Program (Logic)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024
  • #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 2 ปีที่แล้ว +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 3 ปีที่แล้ว +9

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

  • @pavithraraji7175
    @pavithraraji7175 3 ปีที่แล้ว +4

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

  • @RachamalliVijayaDurga
    @RachamalliVijayaDurga 6 หลายเดือนก่อน

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

  • @WhosaidInvoked
    @WhosaidInvoked 28 วันที่ผ่านมา

    Thank you for the lesson!!

  • @tijanamakic239
    @tijanamakic239 5 ปีที่แล้ว +9

    Very nicely explained, thank you!!

  • @nelumdinusha3812
    @nelumdinusha3812 3 ปีที่แล้ว +2

    Explanation is clear 💐❤

  • @rezaarian237
    @rezaarian237 3 ปีที่แล้ว

    the best explanation ever

  • @arnavarora3607
    @arnavarora3607 3 ปีที่แล้ว +1

    thanks best video for solution

  • @nigarcetintas1599
    @nigarcetintas1599 4 ปีที่แล้ว +1

    Explanation is perfect🤓😲

  • @legendarytwister3656
    @legendarytwister3656 4 ปีที่แล้ว +1

    i just love you man! thanks!

  • @MrGnanavelu
    @MrGnanavelu 4 ปีที่แล้ว +2

    What app you use to do these java programs..

  • @joshuapauleT
    @joshuapauleT 4 ปีที่แล้ว +1

    Thankyou so much idol

  • @jawoll3664
    @jawoll3664 2 ปีที่แล้ว

    Nice, this helped me with my homework. lol

  • @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.

  • @Pop_a_j_a_y
    @Pop_a_j_a_y 3 ปีที่แล้ว

    TQ bro 🤗 💫🤩

  • @sathishappu2201
    @sathishappu2201 3 ปีที่แล้ว +1

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

  • @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)

  • @senthilmuruganr234
    @senthilmuruganr234 3 ปีที่แล้ว +1

    Excellent sir

  • @adarshamiraje4079
    @adarshamiraje4079 2 ปีที่แล้ว

    Thanks

  • @nelumdinusha3812
    @nelumdinusha3812 3 ปีที่แล้ว +1

    Thank u so much ❤

  • @Mohanadxd
    @Mohanadxd 4 ปีที่แล้ว +1

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

  • @Devivl
    @Devivl 2 ปีที่แล้ว

    Thank you 🙏 ❤

  • @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?

  • @hugogabrielmedinatopete1903
    @hugogabrielmedinatopete1903 4 ปีที่แล้ว +1

    thanks bro

  • @nitinpanchal7
    @nitinpanchal7 3 ปีที่แล้ว +1

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

    • @TalentedDeveloper
      @TalentedDeveloper  3 ปีที่แล้ว

      Hi Nitin,
      you have to run the program in debug mode
      th-cam.com/video/AP1ZEgkKoeA/w-d-xo.html
      are this video, and after that put breakpoint and run in debug

    • @nitinpanchal7
      @nitinpanchal7 3 ปีที่แล้ว +1

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

    • @TalentedDeveloper
      @TalentedDeveloper  3 ปีที่แล้ว

      great, 👌
      you are most welcome ☺️

  • @JFSTutorial
    @JFSTutorial 5 ปีที่แล้ว +1

    For more details information check this video
    th-cam.com/video/qr-WmDy73u8/w-d-xo.html

  • @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.

  • @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"😩

  • @VUMADEVI-vk1yc
    @VUMADEVI-vk1yc 3 ปีที่แล้ว +1

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

    • @TalentedDeveloper
      @TalentedDeveloper  3 ปีที่แล้ว

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

  • @joshuaminta5922
    @joshuaminta5922 2 ปีที่แล้ว

    thanks po

  • @melody_muzicals
    @melody_muzicals 3 ปีที่แล้ว +1

    Tqq

  • @nysmulerecords4465
    @nysmulerecords4465 4 ปีที่แล้ว +1

    nice bro. Thank for sharing😊

  • @hikamiawnyan
    @hikamiawnyan 3 ปีที่แล้ว

    Thanks sir

  • @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

  • @wilmanfirmansyah8051
    @wilmanfirmansyah8051 2 ปีที่แล้ว

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

  • @arpanbala3075
    @arpanbala3075 4 ปีที่แล้ว +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  4 ปีที่แล้ว

      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  4 ปีที่แล้ว

      if you need tomorrow, i can do program

    • @arpanbala3075
      @arpanbala3075 4 ปีที่แล้ว +1

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

    • @TalentedDeveloper
      @TalentedDeveloper  4 ปีที่แล้ว

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

    • @arpanbala3075
      @arpanbala3075 4 ปีที่แล้ว +1

      @@TalentedDeveloper it shows service unavailable

  • @collinskanazache8682
    @collinskanazache8682 ปีที่แล้ว

    awesomeness

  • @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 5 ปีที่แล้ว +1

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

    • @TalentedDeveloper
      @TalentedDeveloper  5 ปีที่แล้ว

      which shape? can you explain more

    • @TalentedDeveloper
      @TalentedDeveloper  5 ปีที่แล้ว

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

  • @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 😊😊

  • @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

  • @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
      th-cam.com/video/C1IsAYMSa4c/w-d-xo.html
      th-cam.com/video/h9ngOLu_P5o/w-d-xo.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

  • @indrajitpatil4999
    @indrajitpatil4999 5 ปีที่แล้ว +1

    Wow

  • @chinnaphatlin9284
    @chinnaphatlin9284 ปีที่แล้ว

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

  • @DB-nl9xw
    @DB-nl9xw 4 ปีที่แล้ว +1

    Get a microphone

  • @whiteblack549
    @whiteblack549 ปีที่แล้ว

    LOL bad tutorial