can someone write a javaprogram to create a class that store objects with an inventory when the size was 20 and then expands to 100. print from 100-120

my guess: most people here can write that code easily, if we know a bit better what and how it's supposed to work, but we're not here to do your homework for you.

what have you got so far? what is it you are having trouble with?

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

Post what you have done so far and someone will help you from there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.