Questions tagged as 'java'

1
answer

Basic query of Database

My query is about how to do an update to update several columns at the same time, work with java and mysql. stat.executeUpdate("Update producto set Prod_nombre= '"+Nom+"' , Prod_precio="+pre+" , Prod_existencia="+exis+" , Prove_id= " +prove...
asked by 08.03.2018 / 04:05
0
answers

problem loading recyclerview list with firebaseui

I'm very new in developing applications, I'm doing this app where I have to save some data in the cloud, I'm using firebaseui with recyclerview for it. I could upload the data but when loading the list my app is closed. Here I leave the code:...
asked by 08.03.2018 / 00:09
2
answers

Compare 2 strings

The idea is that you put for example A and I have to pass it to number, more than number is the value of the index of the array where I have the letters, but it does not work. //Varianles String[] letras = {"a", "b", "c", "d", "e", "...
asked by 11.03.2018 / 13:03
1
answer

make an update to a table and I get parameter index out of range 1 0

When doing an update to a bd using java, I get this error: I have checked the code carefully and can not detect the error by which it appears to me: paramenter index out of range 1
asked by 12.03.2018 / 01:18
1
answer

How can I assign a task to a thread?

Good I have a problem with Threads in Java when I execute my program with four Threads the execution time is greater than if I execute it with 1 and I do not understand the reason. Basically what I want is to assign each Threads the number of fi...
asked by 06.03.2018 / 19:34
0
answers

prevent a new intent from being repeated on android

Hi, I'm trying to create an intent in android, but the objective is to check if the intent exists and if it exists, destroy it and call a new intent with different parameters, this is the calling code. public void Safesearch(String urlgoogle){...
asked by 08.03.2018 / 23:23
1
answer

Generate a cycle to add days to a date

Good morning I am trying to add a few days to days without counting Saturdays and Sundays when it gets to Friday, the day increases but the result is Saturday afterwards it does not do anything for the condition of the if (): while (dias<=n...
asked by 08.03.2018 / 17:49
0
answers

Problem when compiling an iReport report in Netbeans

Hello I am trying to generate a report with ireport in netbeans to which I am loading a scriptlet, when I run the report to be able to visualize it in netbeans I get everything right but when compiling the report from my application I get the fo...
asked by 08.03.2018 / 19:50
1
answer

Setting a MediaPlayer object as AndroidStudio Ringtone

I am in the development of an application which has 4 objects MediaPlayer loaded and are reproducible, very similar to a keypad I want to be able to set them as a ringtone, notifications or message and I can not find anywhere to do it....
asked by 08.03.2018 / 19:11
0
answers

because this error is in java, Can not format given Object as a Date?

I have the following method public List<String> llenaDiasAnioMes() { Date date = null; List<String> lDias = new ArrayList<>(); for (Integer i = 1; i <= this.getLongitudMes(); i++) { String fechaAct...
asked by 05.03.2018 / 23:55