Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes
asked in CSC211_Winter2018 by (1 point)

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 (1 point)
+1 vote

you'll create a class constant.

eg. public static final int SIZE=4;

answered by (1 point)
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 (1 point)
...