public class Sample { static int count = 0; public int abc; public Sample() { abc = ++Sample.count; } }
I want to
At this point you have an empty array of size 100, if you want to fill it with items, then you would have to do something like:
for(int i=0; i