Ask Question
Today, 18:19

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 new line) consisting of five periods.

+1
Answers (1)
  1. Today, 20:13
    0
    public static void printDottedLine ()

    {

    System. out. println (" ... ");

    }

    Explanation:

    The above written code is in JAVA and it is the method definition of the method mentioned in the question. Since the method returns nothing hence it's return type is void and it does not have any arguments hence there is nothing written in the parenthesis. In JAVA System. out. println is used for standard output and trminates them by newline.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write the definition of a method printDottedLine, which has no parameters and doesn't return anything. The method prints to standard output ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers