Link to home
Start Free TrialLog in
Avatar of ZURINET
ZURINET

asked on

Initialization of data field

Hi! all !!

I have this code below

private static final int NumberOfstudents = 20;

How do I Initialize the data filed so that NumberOfstudents is equal to 5 and is no longer a constant.

Thanks in Advance
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ZURINET
ZURINET

ASKER

Hi CEHJ

it should be something like this ?

private static int NumberOfstudents = 5;

:-) Yep