Advertisement
nikeza

Untitled

Mar 18th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1.   boolean check = true;
  2.             for (ProductWithSellerDto checkExist : allDto) {
  3.                 if (checkExist.getLastName().equals(product.getSellerId().getLastName())) {
  4.                     check = false;
  5.                 }
  6.             }
  7.             if (check) {
  8.                 allDto.add(sellerDto);
  9.             }
  10.  
  11.         }
  12.        
  13.         allDto -> toJson
  14.         sellerDto -> allDto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement