referring to objects via user input strings
I have 2 objects called X and Y created from a class called Product which has a field called numInStock. From another driver program, I want a user to input either X or Y with their response being stored in a string userchoice (so user enters X or Y as a response) Then I want to be able to...
__________________
Java
domain name forum
|