1. Engineering
  2. Computer Science
  3. example method specification public static void writelinechar ch int n...

Question: example method specification public static void writelinechar ch int n...

Question details

3. Write a recursive Java method writeLine that writes a character repeatedly to form a line of n characters. For example, writeLine( 5) produces the line ** Then write a recursive method writeBlock that uses writeLine to write m lines of n characters each. For example, writeBlock(*,5,3) produces the outputExample method specification: public static void writeLine(char ch, int n) public static void writeBlock(char ch, int n, int m)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution