how do define a variable in java?
Answers
Answered by
1
Answer:
Declaring (Creating) Variables
type variable = value; Where type is one of Java's types (such as int or String ), and variable is the name of the variable (such as x or name). The equal sign is used to assign values to the variable.
Similar questions