Questions tagged as 'java'

2
answers

How can I get the current android activity?

I'm doing some tests of android apps in eclipse, and I have a method to click the back arrow to which I pass a Activity : public void flechaAtras(Activity activity) { Display mdisp = activity.getWindowManager().getDefaultDisplay();...
asked by 22.10.2018 / 14:20
0
answers

Problems parsing XML

I am trying to parse an xml to store values of a web in an array within an android app in this way: //Parseo XML try { //Conexion app-web URL url = new URL("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"...
asked by 22.10.2018 / 15:05
1
answer

save in variables int, String and boolean the results obtained by the ResultSet

I have a Object [][] where I temporarily store three values that I get from Base de Datos ,% int ,% String and% boolean , how do I pass them from: result.next();{ datosObt[0][0] = result.getString( "cedula"...
asked by 21.10.2018 / 06:08
0
answers

How to get the sum of a string in hexadecimal

For example I have this string: String inpu = "0E00005031544D50434B2E733139" and I need to do the sum of two in two like this: 0E+00+00+50 and so on private static String getSum(String input) { int sum = 0; int x=0; int...
asked by 21.10.2018 / 02:28
0
answers

How to send an array from a servlet to a jsp by means of a drop-down-list

You will see I have a problem, I am doing a program that through a page jsp that contains a textbox to enter a number that will be the total number of fibonacci series that the user will see. That is, if you enter 5, you will only see 5 numbers...
asked by 21.10.2018 / 21:49
1
answer

pass arraylist to Fix

I'm trying to pass the values of a arraylist to an array but it tells me that all records are null . public static void listadedatos() { for(int i = 0; i < datostabla2.size(); i++) { datostabla[i] = (String) datostabla2.ge...
asked by 19.10.2018 / 15:07
0
answers

Synchronized threads in JAVA

How can I make thread 1 when it reaches 10 or more, go to thread 2 and when it finishes adding its 5 numbers it will return to thread 1 to continue its series in case it has not finished yet? THREADS package pruebahilos; public class Hil...
asked by 21.10.2018 / 19:28
0
answers

org.springframework.beans.factory.BeanCreationException ERROR

I try to run my application in NetBeans and I get the following error. My mistake: Error creating bean with name 'BDEncuesta' defined in file [D:\adenbpo-reportes-encuestas-ms\target\classes\com\adenbpo\BDEncuesta.class]: Post-processing...
asked by 24.10.2018 / 02:19
1
answer

How to get the name of a file from your Uri on android?

I have a question there is some way to get the name of a file (in my case an image) from your URI obtained I have the sgt code: and I would like to know if there is any way to get the specific name of the file thanks. protected void onActivity...
asked by 24.10.2018 / 00:22
0
answers

Make request HttpPost without waiting for a reply Spring boot

I have a problem since I consume an external service, but I only need it to notify, this service sometimes takes a long time to respond and affects the response time of mine, which I must do to execute the service and not wait for the answer to...
asked by 19.10.2018 / 22:03