About 243,000 results
Open links in new tab
  1. loops - Printing *s as triangles in Java? - Stack Overflow

    Dec 27, 2012 · My assignment in my Java course is to make 3 triangles. One left aligned, one right aligned, and one centered. I have to make a menu for what type of triangle and then input …

  2. How to print star pattern in java? - Stack Overflow

    Jul 8, 2019 · How to print star pattern in java? Asked 6 years, 4 months ago Modified 3 years, 10 months ago Viewed 2k times

  3. java - Pattern Printing - Stack Overflow

    Mar 2, 2018 · I like to print a pattern in java which gives the output: 1 23 456 78910 .... But i am not getting how to do this, I wrote a program to print pattern of 1 12 123 1234 ... as import …

  4. how to print a number triangle in java - Stack Overflow

    Feb 5, 2014 · If you look above to Brian's code, you can see he has a main loop, which controls how many lines of output are printed in this case there are 5. Where it says "// Determine …

  5. Print a text pattern in java - Stack Overflow

    Apr 13, 2015 · Print a text pattern in java Asked 10 years, 8 months ago Modified 7 years, 8 months ago Viewed 3k times

  6. java - How to make a diamond using nested for loops - Stack …

    Oct 11, 2013 · java-11 Using String#repeat introduced as part of Java-11, you can do it using a single statement inside a single loop.

  7. java - Print an hourglass pattern - Stack Overflow

    I want to print the pattern in java and I have tried the following code. please guide me to solve my mistake. import java.util.*; class sp10 { public static void main (String args []) { ...

  8. loops - Pyramid of numbers in Java - Stack Overflow

    Sep 4, 2012 · 0 Think two patterns. First pattern , print left and right. Second Pattern , print every lines and check a gap with printing start point.

  9. java - A program that prints the following pattern - Stack Overflow

    A program that prints the following pattern Asked 11 years, 9 months ago Modified 6 years, 11 months ago Viewed 6k times

  10. for loop - Create a Star Pattern in Java. - Stack Overflow

    Mar 5, 2017 · 2 I am working on a simple star pattern program in Java. I have the code running but it is not doing what it's supposed to. My code is: