Answer:
import java.util.Scanner;
public class DashLine {
public static void main(String[] args) {
// Declaring variables
int n;
/*
* Creating an Scanner class object which is used to get the inputs
* entered by the user
*/
Scanner sc = new Scanner(System.in);
// Getting the input entered by the user
System.out.print("Enter a number :");
n = sc.nextInt();
// calling the method by passing the user entered input as argument
dashedLine(n);
}
//This method will print the dashed line for number greater than zer
private static void dashedLine(int n) {
if (n > 0) {
for (int i = 1; i <= n; i++) {
System.out.print("-");
}
System.out.println();
}
}
}
Explanation:
Answer: testing
Explanation:
Testing an answer with multiple attachments
Select the
comments feature.
We use comments in our documents to track issues for follow
up or make suggestions to other people. A comment is inserted inside a balloon or
a box that appears in the document's margins. Whatever the situation you may be in,
you can easily add comments in a word document.
The answer is D) pull down menu
Also called a drop-down menu, this is a menu that remains invisible until you click or hover over it, pulling up the menu options. This is useful for reducing clutter in the work area of an application, such as Excel, while keeping the tools included in the menu readily available.