Questions tagged as 'java'

1
answer

what is the difference between a getElementsByTagNameNs () and a getElementsByTagName ()

good morning I'm consuming a web service through bonitasoft with the groovy editor but I have not been successful, because when I manage the xml I can not get all the information about it, I think the problem is the way I am using the getElement...
asked by 02.10.2017 / 18:46
1
answer

Is it important to use EventQueue.invokeLater in my main method?

Create a class inherited from JFrame and send it in another class with this code public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { JFrameEj...
asked by 25.10.2017 / 00:00
3
answers

Is it necessary to do all the mapping of all the tables with hibernate?

Good morning everyone, I have been reviewing a Spring + Hibernate application and as I see there are many tables that are not mapped or that do not have an entity defined in Java. I have also seen that many of them do not even have the relati...
asked by 05.10.2017 / 00:18
1
answer

Get JSON of web service in JAVA

I am starting in the programming of online databases and its communication with a local application such as a JAVA or Android desktop application. My question is this: Having a PHP service configured in a URL that returns all the data in t...
asked by 25.10.2017 / 14:33
1
answer

Problem with ScheduledExecutorService when running in Android service

One question, I'm creating a service on android, and I need this one to call a method every so often, and for that I'm using ScheduledExecutorService . Here I put the code: @Override public int onStartCommand(Intent intent, int flags...
asked by 06.10.2017 / 01:15
1
answer

Listview and slow button

is my first app, and I have the problem that when you click on ListView the app as it freezes a moment and then responds, I think it's because my code is poorly optimized, how can I solve it? package com.david.animefm2; import andr...
asked by 05.10.2017 / 19:58
1
answer

Long of infinite length

Good morning. I have a very simple question for you. I have informed myself and I have seen that the long data of java only reaches 2 ^ 64. Is there any way, either changing the data type or anything, to make the numbers bigger?     
asked by 30.09.2017 / 12:41
1
answer

How to alphabetically order a string array in java

I have a problem when ordering my array string names, try using the Arrays.sort (); but my code did not work here. package mainclass; import java.util.Scanner; public class Personas { public static Scanner leer=new Scanner(System.in); p...
asked by 01.10.2017 / 01:54
1
answer

How to run a jar in different versions of Java

How is it possible to run a jar in different versions of Java? To give a very basic example, download a jar-calc (a calculator) a simple jar and I could run it on a PC with winXP java 7 and the same jar run it on a Windows 7 java 8 No problems....
asked by 01.10.2017 / 15:51
1
answer

I print toString but with value 0

I have a small problem. In class design a small program which consists of 3 classes. Point, Circle and Test. I already have the methods for each class and I print the values except one that is the center attribute of the class Point, which must...
asked by 28.09.2017 / 06:43