Questions tagged as 'java'

2
answers

Transform boolean from sql to boolean java?

I'm in a problem, I have a SELECT that asks for ususario (int) , contraseña (String) and tipo (boolean) of a database, I keep them in a Object [][] , all right there, but when I want to save those 3 values in oth...
asked by 25.10.2018 / 04:59
1
answer

How can I map a VISTA or a STORED PROCEDURE from an sql server database with Hibernate in java se?

How can I map a VISTA or STORED PROCEDURE from a sql server database with Hibernate in Java SE?     
asked by 18.08.2018 / 21:57
2
answers

Does the finalize () method of a java class do exactly the same as the ondestroy () method for android?

It's really funny, since the finalized method in the object class does cleaning tasks before the object has been deleted from memory, which is also done by the onDestroy class. So I have this question in which they differ and why for Androi...
asked by 14.12.2016 / 20:44
1
answer

Show plurals on Android

Is there any way to pluralize strings in Android? that is, to represent. hay 1 objeto hay 3 objetos Currently what I do is have two resources defined in string.xml and if the value is more than 1 charge one or the other.     
asked by 10.12.2016 / 17:00
1
answer

org.springframework.beans.factory.NoUniqueBeanDefinitionException: expected single matching bean but found 3

How to resolve ambiguities in the AUTOMATIC CONNECTION of Bean in Spring? Image we have an interface: public interface Dessert { void eat(); } And we have three Beans that implement the interface: BEAN CAKE: @Component public class...
asked by 01.09.2018 / 13:47
1
answer

How to create a keyboard listener just for the ENTER key? [closed]

I'm working with a user registration window, and at the end I have the register button, but I want the user to press the enter key, do the same as if I clicked the register button, how can I do that? I have seen that the keyboard listeners work...
asked by 12.08.2018 / 01:58
1
answer

Push notification FCM does not run when the Fragment that contains it is not open

I have a Push notification code that is activated when one of the data in my Firebase Databade changes. The code works perfectly when I am inside the Fragment where it is incorporated, but when I close the app or change Fragment or Activity it s...
asked by 15.08.2018 / 22:57
2
answers

I get an error when trying to register a new person (artist) in Java

Good morning, I'm doing a Java program in which I have to register artists, and also their albums and songs (well, and also modification and elimination but that does not come right now). Everything is connected to a MySql Database, the progr...
asked by 27.04.2016 / 08:59
2
answers

Fill an array with objects from other classes

I need a method of name "submitBanda" that will receive a Band type object with 5 musicians and print a message. How can I fill an array with objects from other classes, and use it as a method? My code is the following. package presentarban...
asked by 01.08.2018 / 21:19
1
answer

Error on Vector in Java

I would appreciate if someone can help me with the following error:    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException   at folder.ConfigTeclado.guardaConfig (ConfigTeclado.java:91) The code (only the parts where I u...
asked by 01.08.2018 / 18:26