Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. package com.javarush.task.task02.task0204;
  2.  
  3. public class Solution {
  4. public static void main(String[] args) {
  5. Man man=new Man();
  6. Woman woman=new Woman();
  7. man.wife=woman;
  8. woman.husband=man;
  9.  
  10. }
  11.  
  12. public static class Man {
  13. public int age;
  14. public int height;
  15. public Woman wife;
  16. }
  17.  
  18. public static class Woman {
  19. public int age;
  20. public int height;
  21. public Man husband;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement