Questions tagged as 'java'

1
answer

HashMap shows me duplicate elements java

My question is How can I show only the records I have in my hashmap without repeating them? Ex: I have a arraylist<String> loaded with data, I also have a text file loaded with data inside. File content .txt : 25, Argenti...
asked by 03.09.2017 / 02:34
0
answers

Could not locate cfg.xml resource [hibernate.cfg.xml]

Good people ... I just registered in Stackoverflow, since I have the following problem: I am trying to insert a record in a MySql Database using MAVEN and HIBERNATE .. As an Operating System I have Ubuntu Mate 16.04.3 LTS. When running my code,...
asked by 01.08.2017 / 23:19
2
answers

How to make a TextView display the contents of an Array if I'm running it with a For

I have an Array of int that stores the Questions in (ID) mode for this reason it is not of type String. I have another Boolean Array that stores the correct answers.    The original idea is that a for cycle traverses the Array of questions an...
asked by 04.08.2017 / 15:12
1
answer

Clean Cache BLE Bluetooth

I am doing a reading of a device, and when making successive readings the information is not updated, so I would need to know how I could clean the cache or buffer that may be causing this information not to update. It is using the BLE module al...
asked by 23.08.2017 / 07:43
1
answer

Cycle with 2 counters in Java [closed]

Is it valid to make a cycle like this one? for(i=0,j=0;a[i][j]==0;i++,j++) Would it increase both variables with each iteration performed?     
asked by 12.08.2017 / 17:57
1
answer

Could you help me find the error ?, marks me sql error [closed]

/** * Descripcion: metodo para buscar un producto Recibe: recibe un objheto de * tipo producto Devuelve: un registro de tipo producto */ public static Almacen buscarAlmacen(Almacen almac) { ResultSet rs; Usuari...
asked by 19.08.2017 / 01:37
0
answers

LinkageError in Websphere (IIOMetadata.getAsTree)

I have a web application mounted on a Websphere, in which I export to excel using the mythical poi library. And I missed a Linkage error when executing the next sentence, it is just in the line of pict.resize (); Picture pict = drawing.create...
asked by 21.08.2017 / 11:59
0
answers

login with javaFx and MySQL

I am new using JavaFX and I am trying to make a login connected to the database Program Launcher public class Login extends Application { @Override public void start(Stage primaryStage) { try { AnchorPane root...
asked by 15.09.2017 / 16:16
1
answer

How do I create a java method to load a jcomboBox with JPA?

I am trying to make a method to load a bombobox in an application of > mysql using jpa . I use: NETBEANS 8.2 JAVA version "1.8.0_131" EclipseLink (JPA 2.1) JDBC Library Form code public jfrm_Administrador() { initComponents(...
asked by 28.07.2017 / 17:56
1
answer

String Constant Pool

I'm pretty sure you understand exactly how the String constant pool concept works. If we create an object with new , will an object be created in the heap and a reference in the pool but not an object? If we create an object w...
asked by 28.07.2017 / 08:06