Questions tagged as 'java'

2
answers

Threading of threads in Java

I'm testing threads in Java and I've stayed in a part where I do not know how to continue. The problem is this: I have 3 threads running and I would like to know how I can stop the second thread only if the first thread is suspended. The part...
asked by 30.05.2016 / 20:21
1
answer

How to save a two-dimensional arrangement in a one-dimensional

I want to save a two-dimensional array in a one-dimensional array that will have an accumulation of data, in days and careers, so I want to save this in a one-dimensional one which will be the sum of the times that they chose a career in the tot...
asked by 05.05.2016 / 04:38
3
answers

How to activate the BroadcastReceiver after rebooting?

I explain my problem, I have created an application that has to send a notification every day at a specific time. For this I have developed the following code: Intent intent = new Intent(this, Alertas.class); PendingIntent pIntent = PendingIn...
asked by 19.05.2016 / 17:14
1
answer

Simple list of vectors

I'm trying to create a simply linked list in which each node is a vector of type Image , this is the method I'm using to add the new node but the third line as the penultimate throw me the following error:    "can not infer type argumen...
asked by 22.05.2016 / 21:09
2
answers

Load the same RecyclerView with data from two or more SQLite tables

What I want is to make the data of the Cardview appear in a tabla1 and in the next CardView the data of the tabla2 . I tried to enter the data in the method onBindViewHolder but I have not succeeded. This is wha...
asked by 21.08.2016 / 06:10
3
answers

Error "User does not have sufficient privileges or object not found"

I have a problem with UcanAccess, which is when using the WHERE clause, it throws me an error. ConnectAccess.java import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class...
asked by 21.08.2016 / 21:42
1
answer

Unexpected end in getLocalHost with InetAddress

I need to connect to a computer using RMI, but the project server class has the following line: InetAddress.getLocalHost().toString() Of which according to the documentation I hope I return a String with the network address of my mac...
asked by 01.04.2016 / 14:58
1
answer

Does not enter the if statement, even if the data matches [duplicated]

In the following fragment of code, I hope that the text is printed inside the if but when I execute it I see that it does not enter. I have verified that both objects have the same data to be considered equal. What can I be doing wrong?...
asked by 31.03.2016 / 16:28
1
answer

Personalized access in Spring Security

Someone could help me in an access through Spring Security, I require that the authentication (Login) be done through a stored procedure (SP), which returns a character 'V' or 'F' as the case may be. How do I tell Spring Security which interp...
asked by 19.03.2016 / 01:44
4
answers

Problem with foreign key when deleting artist in java

Good, I'm doing a program to add / remove / modify artists from a database and when I try to delete the artist I skip this:    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:   Can not delete or update a parent row...
asked by 07.05.2016 / 18:51