Answer:
Have water by, have it organized, and have notes by you welcome.
Explanation:
C.a form used to create a new tables for the database
Answer:
The output streams to this question is "output.print(message)".
Explanation:
The description of the following can be given as:
- In the given question it is define a string datatype variable that is "message".
- Then we create a reference variable of PrintWriter class that is "output" and call string type variable that is message by the use of the print function we print message.
import java.util.Scanner;
public class JavaApplication86 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = 0, c = 0, sum = 0;
while (true){
x = scan.nextInt();
System.out.println("You entered: "+x);
if (x == -1){
break;
}
sum += x;
c++;
}
System.out.println("The sum is "+sum);
System.out.println("You entered "+c +" numbers");
}
}
This works for me. Instead of subtracting one from c and adding one to sum, I used an if statement to break away from the while loop if the entered number is -1.