C. Miller

Greenhorn
+ Follow
since May 15, 2013
C. likes ...
Eclipse IDE Chrome Windows
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

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