public static void drawIndentedLine (int spaces, String begin, int n, String middle, String end)

It should print a single line, terminated with a newline, that begins with the specified number of spaces, followed by the begin string, followed by n copies of the middle string, followed by the end string.

I dont know how to do this in eclipse any ideas ?

Recommended Answers

the ide you use is irrelevant. this is very basic, using a few for loops, and some print statements.
basic String concatenation and System.out.println statements. just show what you have got so far.

Jump to Post

All 2 Replies

the ide you use is irrelevant. this is very basic, using a few for loops, and some print statements.
basic String concatenation and System.out.println statements. just show what you have got so far.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.