Questions tagged as 'java'

0
answers

Error entering two conditions in an if () for a user

I want only user1 to be able to enter User1.class but I get an error ... when I log in with the other users it does not give an error because they redirect me to StartActivity by not fulfilling the requirements of the if ... This is the code...
asked by 29.03.2018 / 21:05
0
answers

How do I make my figure shoot a bullet type without moving the triangle together?

Basically what I want to achieve is to make the triangle I have (Obviously create a class to create the triangle), is to shoot a bullet, if you want to see a better perspective more or less like the game of "Asteroids " public class NaveClass...
asked by 03.04.2018 / 21:00
0
answers

They could tell me that I have bad. my method runs half

This is the method and only runs until the creation of myProducts the cursor and the rest does not. someone could tell me that I have bad thank you very much. public List<Product> getProducts() throws SQLException { String[] column...
asked by 26.03.2018 / 18:30
1
answer

Parental control on Android

My project is a parental control that filters explicit content (pornography) and implementation of secure search in search engines. I already have the methods for such actions but I have found that at the time of navigation in any mobile browser...
asked by 26.03.2018 / 14:09
0
answers

Android AsyncTask doInBackground works on 1 phone but not on another

I have an app that finishes everything OK on a Samsung Galaxy S7, version 7.0, API 24. But when I try it on a Huawei CAM-L03, version 6.0, API 23, it does not work. I basically have a class like this: public class Sender extends AsyncTask...
asked by 04.04.2018 / 14:59
0
answers

how to refresh a datatable of primefaces after a click?

I have the following form <h:form id="form"> <p:commandButton icon="ui-icon-clock" styleClass="element-button green hacia-izquierda" style="margin-right: 5em; margin-top: -1em;" value="Horario" update=":form:horario" oncomplete="PF(...
asked by 04.04.2018 / 15:29
2
answers

try to work recursively algorithm iteratively

Hi, I would like to know if you can handle a recursive algorithm in an iterative way, because I have tried to put a button to run iteratively adding iterations but I can not because the recursive algorithm does it all at once this is the algorit...
asked by 25.03.2018 / 00:32
0
answers

Exception Can not issue data manipulation statements with executeQuery ()

I have this class called programa : public class Programa { public static void main(String[] args) throws SQLException{ Persona p = new Persona("a","b","a","13-04-1994"); String servidor = "jdbc:mysql://localhost/prueba"; Con...
asked by 23.03.2018 / 19:17
0
answers

Error converting object to string jsf-hibernate

I am doing a control program for borrowed books where only the Isbn of the book and the Student's card are kept in the Loan table; I do it with JSF and Hibernate. I'm loading a selectOneMenu with a query of Student-type objects but when converti...
asked by 24.03.2018 / 00:33
1
answer

Matrices between Java classes

I have a question like they would do to use a matrix in several classes, my problem is that I have to create buttons in java but inside them I can not create methods. modificacion_Usuario.addActionListener(new ActionListener() {...
asked by 23.03.2018 / 20:31