About 136,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. Print a text pattern in java - Stack Overflow

    Apr 13, 2015 · Print a text pattern in java Asked 10 years, 7 months ago Modified 7 years, 7 months ago Viewed 3k 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. java - Using nested while loop to print pyramid of stars - Stack …

    Nov 30, 2016 · I'm trying to print a pyramid of stars using nested while loops. I know I am able to achieve this using for loops but I want to do it with while loop instead. This is my code so far: …

  6. java - Printing the patterns using only one loop - Stack Overflow

    0 Print pattern using single loop: the code is written in objective-c any one can use this logic and write program in their respective language. int k = 5;

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

    Sep 4, 2012 · So basically the left side of the pyramid is just an inverted triangle of blank spaces. I am having trouble figuring out what is happening in the other two nested loops and the the …

  8. 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:

  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, 10 months ago Viewed 6k times

  10. Number Patterns using loops in Java - Stack Overflow

    Mar 22, 2014 · I have been trying different variations of for loops and have no clue how to make these patterns: Pattern 1 54321 5432 543 54 5 Pattern 2 1 12 123 1234 12345 Pattern 3 …