Questions tagged as 'java'

1
answer

Catch only equal elements in an array

I have an array for example: 1 4 7 1 3 4 6 7 1 2 3 4 5 6 I have to see the numbers that repeat on ALL lines, in the example, should be the numbers: 1 and 4. For they are repeating on all lines. Vector<Integer> validos = new Vector&l...
asked by 17.06.2016 / 17:23
1
answer

Tree Selection PrimeFaces

I want to make a feature in the application that lists folders and files in a directory, so I thought about the Tree Selection of the Primefaces, however I want to expand the Tree Selection at the folder level and the files to be opened next to...
asked by 16.06.2016 / 02:10
1
answer

Load and set asynchronous bitmap

Is it possible to load a Bitmap image asynchronously, but set it as an imageview before it's finished? Thus: imageView.setImageBitmap(bitmap); new Thread( ()->{ //carregar bitmap }).start();     
asked by 04.02.2016 / 20:41
1
answer

The last item in the ListView is always deleted, even deleting an item in the middle of the ArrayList

I have Adapter any, and when I click on an exclude icon, the item of my ArrayList is removed. The problem is that even removing the desired item, ListView is updated, always removing the last element. The curious thing is th...
asked by 24.01.2016 / 17:22
1
answer

SQLite android query () / like with accents and without

How to make a query in SQLite for Android that looks for both accented and unstressed words? For example: String[]ARGUMENTOS = {"%"+argumento+"%"} query(TABELA_CIDADES, COLUNA_NOME, NOME + " like ?",ARGUMENTOS,null,null,null,null); Wh...
asked by 29.01.2016 / 12:43
2
answers

Get name of the properties of a Json

How do I get the properties names of a Json using the Gson library? Example input: { "Ficha":[ { "nome":"nome", "sobrenome":"sobrenome", "idade":"idade", "endereco":"endereco", "empr...
asked by 01.02.2016 / 17:39
1
answer

Problems importing with LWJGL [closed]

Hello, I followed in the footsteps of video , and got the example of official website . Attempting to import says the method is undefined :     
asked by 18.01.2016 / 19:45
1
answer

How to create a sum method where the result appears in the edit text field [closed]

I am creating an application and I would like the result of the cost price plus profit percentage operation to appear in the sales price result, since the latter can not be edited at the time of saving the data. I ask them to be as specific as p...
asked by 15.01.2016 / 18:46
1
answer

Problems (VRaptor + Hibernate request)

I'm using Vraptor to develop a web application. More on certain tests, I saw that Hibernate is adding to the database, but when I send Result to my page with a new list of that object I deleted from my client, apparently it...
asked by 15.01.2016 / 17:25
1
answer

Error with CoordinatorLayout

XML: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="...
asked by 27.01.2016 / 20:43