Write the definition of a method printDottedLine, which has no parameters and doesn’t return anything. The method prints to standard output a single line (terminated by a newline) consisting of five periods.
LANGUAGE: JAVA
CHALLENGE:
Write the definition of a method printDottedLine, which has no parameters and doesn’t return anything. The method prints to standard output a single line (terminated by a newline) consisting of five periods.
SOLUTION:
void printDottedLine(){ System.out.println("....."); }