Questions tagged as 'java'

1
answer

Optimize the response of a service in an Api-Rest with Spring Boot

Good day, I am currently developing an api rest with Spring Boot :: (v1.5.9.RELEASE) to control the handling of a table called File, which persists with other entities, The driver to call the service is the following: @RestContro...
asked by 26.07.2018 / 00:15
0
answers

Problem with calling a JSONTask within a Thread

I have a small code to connect by Bluetooth to a device and send a small string, but apart from this, I have a JSONTask in asynchronous, and I call it onPostExecute, my problem is that, I need to call it every certain interval (waiting the refre...
asked by 26.07.2018 / 00:24
1
answer

Take a value from a method

Good Companions, I have a problem. I have the following method: public void repartirPC1() { try { CartasPc1[0] = (int) (Math.random() * 13); CantidadCartas[CartasPc1[0]]--; } catch (ArrayIndexOutOfBounds...
asked by 26.07.2018 / 02:10
1
answer

My method is re-executed when reloading the page in jsf

I'm doing a CRUD manually, not with jpa for the maintenance of my entities tables in my Database strong>, and I have already created the page to add data to the Database, and in the beans I have a register method that I send it to ca...
asked by 26.07.2018 / 00:43
0
answers

App closes on Activ. 3 when pressing one of the buttons and does not send the data to Arduino. You could help me, I'm new to Android Studio, thanks!

Activity 1 (This is where the list of linked devices is made) package com.example.artur.micasav3; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.Intent; import android.support.v7....
asked by 26.07.2018 / 05:11
0
answers

Variables with null value when calling a Thread?

I am trying to use threads in my application to not block the user's main thread, I implemented the Runnable interface in my JFrame, I created the run () method and at the moment of running the application it launches a NullPointerException beca...
asked by 26.07.2018 / 16:56
0
answers

How do I use createTypedArrayList correctly from the Parcelable interface?

My problem is that when recovering an array list typed after using the parcelable interface there is an arraylist that only has to have 2 objects and has more than 6 million generally. This is class BaseDeDatos . It is responsible for...
asked by 27.07.2018 / 00:17
1
answer

One button ends the loop and the other button continues the loop, Cycle Do While

My app consists of a cycle "Do While" and two buttons, I want that when I touch the first button (finish), the cycle ends and the code of the loop is executed. But raise the other button (more), the cycle is restarted and the loop is repeated. T...
asked by 28.07.2018 / 02:27
0
answers

java read a free pdf table

I am new to this and I am trying to make a java program that needs to read the information that appears in the tables of this pdf for free. On the Internet I have found some form of payment or some free that I do not understand, could someone...
asked by 24.07.2018 / 21:36
0
answers

problems procedure update stock

I created my procedure in my mysql DB, it could be created without problems. It is a procedure to register sale and update the stock. But when wanting to register the sale in my netbeans you can not, I get an error. Can you guide me in identifyi...
asked by 24.07.2018 / 19:42