• Post Reply Bookmark Topic Watch Topic
  • New Topic

I need help for this code  RSS feed

 
Dhane Garcia
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write a method to print each of the following patterns using nested loops in a class called PrintPatterns. The signature of the methods are:
public static void printPatternX(int size) //'X' from 'A' to....., size is a positive integer.

#
##
###
####
#####
######
#######
########
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dhane Garcia wrote:Write a method to print each of the following patterns using nested loops in a class called PrintPatterns. The signature of the methods are:
public static void printPatternX(int size) //'X' from 'A' to....., size is a positive integer.

So, what have you tried? The rule here is that you need to ShowSomeEffort (←click). If you write something and then run into problems, we will be happy to help, but noone is going to write your code for you.

Winston
 
Campbell Ritchie
Marshal
Posts: 56598
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!