Questions tagged as 'java'

1
answer

Group List with java 8

The input data would be a list of Products as below [ { "id": "123", "ean": "7898100848355", "title": "Cruzador espacial Nikana - 3000m - sem garantia", "brand": "nikana", "price": 820900.90, "stock": 1 }, { "id": "u7042", "ean": "789805480049...
asked by 01.10.2017 / 21:23
0
answers

Json mapping error for Spring boot

I'm getting the msg below, when trying to map a json - Spring Boot   JsonMappingException: Can not construct instance of javax.servlet.http.HttpServletRequest: abstract types either need to be mapped to concrete types In the product class...
asked by 13.10.2017 / 04:18
0
answers

For no Jasper Reports

I have a problem as follows: I need to create a table to print, where it will be filled manually, and for that, I need to generate rows according to a number that I will go through per parameter. I need to know how to do this with jasper reports...
asked by 12.10.2017 / 01:29
2
answers

Trigger button per shortcut key in Java

I have a java application created by NetBean IDE 8.0. In this application I created a JFrame and put a JButton, which when pressed displays a message. private void btnExibirActionPerformed(java.awt.event.ActionEvent evt) { System.out.printl...
asked by 11.04.2014 / 01:27
0
answers

Doubts on Abstract Classes and Interface (java) [duplicate]

Before stating my doubt, it is valid to make it clear that in some way I understand the difference between the two. I know that an abstract class can have implemented methods, attributes, constructors, and needs at least one abstract meth...
asked by 08.10.2017 / 00:40
1
answer

Calling non-static function inside a Handler

I'm developing a code in android studio where I get data through a buetooth transmission. The data goes to a function called Handler, which is static. public static Handler handler = new Handler() { @Override public void handleMessage...
asked by 22.09.2017 / 22:25
1
answer

Generate numbers based on the index in the array

I need to generate random numbers within a range ... so long, however, I need to do this for each position of the array, for example, in position 1 of my array, random numbers should be inserted in a range of 10 to 20 , at position 2, random num...
asked by 23.09.2017 / 20:24
0
answers

Error consuming service in REST. Attribute exists

Does anyone know the reason for the error below when trying to access consume a webservice? It was working normal, and began to present this error. I've done Refresh in classes, there was no change. It "complains" of an attribute, which already...
asked by 25.09.2017 / 17:53
1
answer

E / SQLiteLog error: (1) no such column [duplicate]

I'm getting an error in my code and I can not solve it, could you give me a little help? I'm getting the error " E :    09-27 04: 04: 14,798 14342-14342 / com.pineapple.pineapple_mobi1   E / SQLiteLog: (1) no such column: Aline 09-27 04:...
asked by 27.09.2017 / 09:31
4
answers

What is the purpose of @Override?

I have some doubts about @override , I read somewhere and I vaguely remember the rewriting issue, but what is it? And what's the use? As it applies to a JAVA code. Is there any other language?     
asked by 30.06.2014 / 16:37