A declaration of a hits variable that can store how many times a baseball player has hit the ball during a game of baseball int hits;
A programme declares a variable whenever it states that it requires one. Place declaration statements for our brief programmes in-between the main method's two curly braces. The variable's name and data type are provided in the declaration. It could also provide a specific value that has to be entered into the variable.
When a variable is given a value for the first time, it is said to be initialized. The symbol = stands in for the assignment operator. Instead of writing int I and then 9, you can establish a variable for addition and then give it a value in the same line by writing int I = 9.
To learn more about declare a variable value, visit:
https://brainly.com/question/15062203
#SPJ4