Posts by Kaique Dias • 64 points
8 posts
-
0
votes3
answers2948
viewsA: How to add contiguous numbers from an array?
If you are using java 8 and want to do it with Lambda System.out.println("Media: " + lista.stream().mapToInt(r -> r).sum()/lista.size()); System.out.println("Maior: " + lista.stream().mapToInt(r…
-
0
votes1
answer68
viewsA: Tender expression for value assignment on a troublesome iReport variable
Try adding the toString(); $V{QtdViagens_1} > 0 ? new BigDecimal($V{QtdPessoas_1}).divide( new BigDecimal($V{QtdViagens_1})).toString() : new BigDecimal("0").toString() make sure the variables…
-
0
votes1
answer84
viewsA: Join with criteria
Try this: DetachedCriteria criteria = DetachedCriteria.forClass(Mapa.class); criteria.createAlias("itemMapa", "ITEM", JoinType.INNER_JOIN); criteria.createAlias("ITEM.classe", "CLASSE" ,…
-
0
votes1
answer65
viewsA: @Restcontroller returns to same page but with different URL
Try this: <form id="action" th:action="@{/v1/emulador-central/}"> <button type="submit" th:name="action" th:value="actionA" class="btn btn- primary">Aprovar</button> <button…
-
0
votes1
answer112
viewsA: Take data array from an API via Java
Have you already set this your array in an object of type Flags? If you have already set, just pass the array to the front. <c:forEach items="${bandeiras}" var="bandeira"> <tr>…
-
0
votes1
answer63
viewsA: How to make a JPA query with mappings @Manytomany
Making an example of the Certification and Employee classes, I believe this can help: List<Certification> findByEmployee_Name(String name); Another example passing a list of names:…
-
1
votes1
answer99
viewsA: Ajax Request Returning in White
Maybe it’s because you forgot to deny the condition !request.getParameter("nome_pesquisa").equals("")
-
0
votes1
answer84
viewsA: How to know which list an object belongs to?
Maybe this can help you, did not know what belonged to the object Labelcarta, so I surgeri an example of attribute, if it does not work comments there that we get there. List<Jogador>…
javaanswered Kaique Dias 64