Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boolean check = true;
- for (ProductWithSellerDto checkExist : allDto) {
- if (checkExist.getLastName().equals(product.getSellerId().getLastName())) {
- check = false;
- }
- }
- if (check) {
- allDto.add(sellerDto);
- }
- }
- allDto -> toJson
- sellerDto -> allDto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement