Posts by Matheus Carvalho • 331 points
7 posts
-
1
votes2
answers182
viewsA: Oracle Insert Too Many values
You were passing more values to insert than declared columns to receive. Try to run the Insert below: insert into tab_Conta…
-
14
votes4
answers16556
viewsA: Generate random numbers in Python without repeating
import random result = random.sample(range(0,100), 4)
-
0
votes1
answer444
viewsA: Search using two parameters in JPA
You’re using the find method to search by date, this method serves to search for an object by the primary key, Exception says you’re passing a Date where you should pass a Long. Try changing the…
-
1
votes1
answer317
viewsA: Map Home Page Springmvc
public class Treinamento { @RequestMapping("/") public String inicio(){ return "redirect:index"; } }
-
0
votes2
answers82
viewsA: I don’t know how to calculate the distance
You can create the method: public static int somarArray(int[] array) { int valorTotal = 0; for (int i = 0; i < array.length; i++) { valorTotal += array[i]; } return valorTotal; } passing your…
javaanswered Matheus Carvalho 331 -
1
votes1
answer659
viewsA: Show only hours in the Primefaces Legend component
Try putting timeOnly="true". <p:calendar id="inicio" value="#{horarioFuncionamentoBean.selected.inicio}" pattern="HH:mm" timeOnly="true" /> <p:calendar id="fim"…
-
0
votes3
answers2135
viewsA: Put the options of an input select in a variable
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <title>Resposta</title>…