C. Miller

Greenhorn
+ Follow
since May 15, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by C. Miller

You could write two static methods to convert one to the other, but you would have to describe the classes in terms of the package and not import them.

E.g. for two classes of the same name in different packages.



and



You could have...



If your WrapperClass2 exists twice in different packages you will have to write another method for that one and use it.

I don't know of an easier method except having one class in one package instead of duplicating it.

Hope this helps.


11 years ago