Questions tagged as 'java'

3
answers

The server closes me connection with the mysql server

Good, I have an application made in java and mysql, after hours the connection is closed, I understand that by the global variable of the server mysql wait-timeout. I have a class that creates the connection to the BBDD and then a class "mana...
asked by 03.09.2016 / 12:38
1
answer

No controls are displayed in JAVA only the JFrame

How about, I have the following code but at the time of executing it, only the window is seen and no control is displayed, could you help me? Operations Class public class Operaciones { public static void main(String[] args) { // TODO...
asked by 31.08.2016 / 20:12
1
answer

Error java.lang.ArrayIndexOutOfBoundsException in java

I have an error in a very basic java exercise. I have not touched this language for a long time, and I do not know what is happening ... (I'm sorry if it's silly, but I do not see it, really). I have a vector, of 100 positions, which I fill i...
asked by 08.12.2018 / 21:49
1
answer

Problem with ENUM in JAVA

Good the problem that I am having is that basically the program consists of a team of basketball where each player has a certain position in which he plays, for it I defined a enum , the theme is that now I want to use it in the constructo...
asked by 12.12.2018 / 14:28
2
answers

RECORRER JSONOBJECT, ANDROID

I need to take the values that are within REGION "addresses":[{ "id":2, "customer_id":2, "region":{ "region_code":"NY", "region":"New York", "r...
asked by 12.12.2018 / 14:42
1
answer

JSON Java management

Good morning, I have to consume a json from a lading that is stored in mysql, I already get the field but when trying to read the json it generates error, the json that I consume is the following: [{ "label": "Nombre Completo", "value"...
asked by 04.12.2018 / 16:12
1
answer

The operator is undefined for the argument type (s) Fraction, Fraction

A line of code (16) is giving me error where it tells me: The operator > is undefined for the argument type(s) Fraction, Fraction why can this happen? my code is: public class RekursionKlassen { public static void main(String[] a...
asked by 02.12.2018 / 22:00
1
answer

data sum of a 4 array without reperting

good I want to add 4 data if it is in the array a b c d but if you add once and do not add again look at a = 36 data, b = 28, c = 7, d = 3; they are the people who have an amount; if I join in an interacion and the code repeats I should not add...
asked by 01.12.2018 / 04:41
1
answer

Read Java JSON file

I have a JSON file which contains key-value information. This information consists of characters that are stored in 8x8 matrices. At the time of reading it, it returns all the contents of the file and what I want to do is to get the value of eac...
asked by 25.08.2016 / 12:27
1
answer

JAX-RS and JSR 311

Well my question is this: what is the difference between JAX-RS and JSR 311 ? Since I understand that JAX-RS is an implementation (that is, an API) of JSR 311 and JSR 311 is the specification. But I have found A...
asked by 24.08.2016 / 18:46