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 ?

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.