Sorry, I kind of combined several operations into one line.
The code can be expanded into several lines for a clearer picture:
// declare 3 variables: sc, player_name, and p1
// note: the...
Type: Posts; User: helloworld922
Sorry, I kind of combined several operations into one line.
The code can be expanded into several lines for a clearer picture:
// declare 3 variables: sc, player_name, and p1
// note: the...
Java was designed to be used in an Object-Oriented manner as much as possible. This means things such as "globals" don't exist. There are ways to simulate globals, but you should really avoid using...