// Create a variable named currentScore capable of holding an integer.

// This variable is not a field of an object.

int currentScore;

// At this point the variable has not been initialized yet.

// An attempt to use its contents here would prevent the app from executing.

// Initialize the variable to contain the value 10.

currentScore = 10;

// Safe to use the value of the variable here.

int oldScore = currentScore;