How to represent n:n relationship in Java?# Java - 爪哇娇娃
g*a
1 楼
I have two fields: X (string) and Y(integer).
One object of X can point to zero or multiple objects of Y and vise versa.
How to represent this n to n relationship between X and Y?
Any implementing class of Map in Java can do this job?
Thanks.
One object of X can point to zero or multiple objects of Y and vise versa.
How to represent this n to n relationship between X and Y?
Any implementing class of Map in Java can do this job?
Thanks.