Posts by Johnatan Dantas • 93 points
12 posts
-
1
votes4
answers79
viewsA: Problem with a search algorithm on a vector and does not find
lista = [1, 2, 3, 4, 5] num_procurado = 4 if num_procurado in lista: print("Contém") else: print("Não contém")
-
0
votes4
answers620
viewsA: How to round off this number: 3084.08 SQL SERVER?
There is the ROUND function, round to the number of decimal places. SELECT ROUND(23542351.4154161,2) SELECT convert(int,(ROUND(23542351.4154161,0)))
-
0
votes1
answer86
viewsA: Database Query with an Array in Hibernate
You adapt to your, :D List<Lotacao> logins = em.createQuery("select l from Lotacao l where l.id in :ids") .setParameter("ids",Arrays.asList(new Long(1000100), new Long(1000110)))…
-
1
votes4
answers474
viewsA: Grab part of a string
Try wearing something like this, string data = "Ninguem ninguem, todos"; string[] words = data.Split(","); This could be solved with regex.
-
0
votes4
answers2357
viewsA: Python - Higher value of a dictionary per key
Good morning you can use Python’s MAX function . dic = {'A': 58, 'B': 100, 'C': 42, 'D': 99, 'E': 12} dic[max(dic, key=dic.get)] Exit: 100…
python-3.xanswered Johnatan Dantas 93 -
0
votes3
answers419
viewsA: What is the best strategy to load and persist large volumes of data with Spring?
Another strategy would be you bring this paginated data to memory (bring the data to java, to do all the processing), then update them and then make a batch Insert in another table. And the old…
-
0
votes1
answer187
viewsQ: About Trigger no postgres
Good guys, my problem is this, I want to make a table partitioning in postgres because a table has zillions of records and searching for it takes a lot (this table tends to grow considerably in the…
-
1
votes2
answers73
viewsQ: Why does this jquery example of w3s not work within web-inf?
Good guys I have a project in Maven, and in my folder I have this structure src > main > webapp > WEB-INF > jsp > index> index.jsp, demo_test.txt This code is inside my web-inf…
-
2
votes1
answer1016
viewsQ: JSF datatable how to fill columns with List<List<Integer>?
I have the following situation. A vector that will store the values that will be registered in the bean public class PainelControleExtratoVO { public Integer[] demandaEmAberto; public Integer[]…
-
3
votes2
answers9442
viewsQ: How to catch the JSON return via jQuery?
I have a link from Click to Call that returns me a JSON. How to proceed to retrieve the data generated in JSON via jQuery? Link:…
-
0
votes1
answer2195
viewsQ: How to sort and disarray a JSF datatable by clicking on the column?
Good guys, I have an application in JSF, I would like to know how to sort and disorganize datatable when clicking the column, in this table there are 6 columns and 3 of them I would like to click it…
-
0
votes3
answers12987
viewsQ: Using a hashMap
I have a hashMap and inside it I have an Arraylist. How do I know if an element is in this list via the hashMap? List<Carteira> carteiras = ArrayList<Carteira>();…
javaasked Johnatan Dantas 93