Hello,
I am trying to write a program that allows the user to enter a letter and using seven different methods to print out the letters.
This display should look like this
CCCCCCCCCC
CCCCCCCCCC
CCCCCCCCCC
CCC
CCC
CCC
CCCCCCCCCC
CCCCCCCCCC
CCCCCCCCCC
The method printBlock should accept a character and two integers.
For example , the call printBlock('*',5,3) would output
***
***
***
***
***
This is in java..can someone please help
Thanks,
jayjay
jayjaysam0441
-2
Newbie Poster
Recommended Answers
Jump to PostTwo for-loops
Jump to PostTwo for-loops
I'm assuming you mean inside the method he has to create (just clearing it up because I was confused at first)
To jayjaysam0441:
I don't think you need seven methods; three calls on the same method, with different parameters should be fine.
public …
All 7 Replies
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
stultuske
commented:
why make it harder if it indeed is this easy?
+3
jasimp
427
Senior Poster
Featured Poster
Alex Edwards
321
Posting Shark
stultuske
1,116
Posting Maven
Featured Poster
jasimp
427
Senior Poster
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
Alex Edwards
321
Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.