Computer Applications
Provide the declaration for two variables called xCoordinate and yCoordinate. Both variables are of type int and both are to be initialised to zero in the declaration.
Values & Data Types Java
19 Likes
Answer
int xCoordinate = 0;
int yCoordinate = 0;
OR
int xCoordinate = 0, yCoordinate = 0;
Answered By
8 Likes
Related Questions
Write a Java assignment statement that will set the value of the variable interestAmount to the value of the variable balanceAmount multiplied by the value of the variable rate. The variables are of type double.
Which integer and floating point data types take up the same number of bits in computer memory?
What is variable initialisation in Java? What are the default values of the following type of variables? short, int, long, float, double, and char.
Explain the statement, "a well-documented code is as important as the correctly working code".