Answer and Explanation:
Multiple-line comments :
Advantage :In the event that we need to remark out of zone of the given program , we can utilize it.
Disadvantage : In numerous line results are in reduced unwavering quality. It stretches out the remark as far as possible of the following comment.For least difficult approach to unintentionally leave off the last delimiter, which successfully expelling code from the program.
Single Line Comments :
Advantage :In the event that you need to close all the delimiter before close the program we utilize this kind of remarks.
Disadvantage : It put more burden on your program .It repeated on every line of a block of comments
Answer:
It disrupt the established social contract, in the same way that invasive species do in natural ecosystems.
Explanation:
Answer:
import java.util.Scanner;
public class StoreGuesses {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int NUM_GUESSES = 3;
int[] userGuesses = new int[NUM_GUESSES];
int i = 0;
for (i = 0; i < NUM_GUESSES; ++i){
userGuesses[i] = scnr.nextInt();
}
for (i = 0; i < NUM_GUESSES; ++i){
System.out.print(userGuesses[i] + " ");
}
}
}
/*
Output:
2 4 6
2 4 6
*/