I apologize if this is a very basic question, but this is my first week in java (mostly python backround).
I want to assign a value "something"
to to variables: x
and y
.
Within the console I want to be able to explicitly say x = some number
and y = some number
so that the order does not matter in which I am inputting the numbers.
So it could be:
x = some number
y = some number
or
y = some number
x = some number
I need to be able to assign a value to a variable when running the code.
How would I accomplish this?