Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes
asked in CSC211_Winter2018 by (8 points)

3 Answers

+2 votes

Have you taken a look into the Class Constant? Check out page 109 of the textbook.

A class constant is a variable that is named and is unable to be changed. It’s scope is the whole class, so it can be accessed anywhere within the class.

Don’t forget that they must be declared with the keyword “final”

answered by (8 points)
+1 vote

you'll create a class constant.

eg. public static final int SIZE=4;

answered by (8 points)
0 votes

It's important to remember that class constants must be stated before the main method and that each part of the constant name is separated by a "_".

answered by (8 points)
...