Advertisement
andersonalmada

Untitled

Jul 1st, 2022
1,260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. Address address1 = new Address("Rua Zacarias Carlos de Melo", "63700-000");
  2. Person person1 = new Person(1, "Almada", address1);
  3. Address address2 = new Address("Rua das Oiticicas", "60700-000");
  4. Person person2 = new Person(2, "Anderson", address2);
  5. Address address3 = new Address("Rua das Carnaubas", "60000-000");
  6. Person person3 = new Person(3, "Francisco", address3);
  7.  
  8. List<Person> people = new ArrayList<Person>();
  9. people.add(person1);
  10. people.add(person2);
  11. people.add(person3);
  12.  
  13. context.setVariable("people", people);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement