This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Generics and Dynamic instantiation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Generics and Dynamic instantiation problem" Watch "Generics and Dynamic instantiation problem" New topic

Generics and Dynamic instantiation problem

marcos mm

Joined: Mar 04, 2011
Posts: 1
Can anyone help me to fix the code in the Main so that is works as intended?
Gurus will know what I'm after.

Please see below:

// this method returns an instance of
// one of the child classes: MyElementA, MyElementB, MyElementC, etc...

// this method returns a specific mapper based on the element

// Main

// end-Main
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Generics and Dynamic instantiation problem