Questions tagged as 'java'

1
answer

Error handling ArrayList in Java

Aldo Francisco Castillo shared a link. 6 min Hello, good! I appeal to you this time with two Java questions. I find myself doing a U laboratory for which I must store polar coordinates (x, y), for this I am using the code that I leave below,...
asked by 28.12.2018 / 01:23
0
answers

Check Checkbox depending on an Arraylist

I have a listView with an editText and a checkBox, what I want to do is that the checkboxes in the listView appear checked if this is the value of the editText in an arrayList I leave you some code so that it can be identified: The xml of the...
asked by 27.12.2018 / 10:45
0
answers

Integration Test Exercise in JAVA

Test or Integration Test Consider the following Bank class: public class Bank{private Account[] accounts; public Bank(int numAccounts) { accounts = new Account[numAccounts]; } public int getNumberAccounts() { int...
asked by 28.12.2018 / 19:38
0
answers

Queries with MongoDB

Good afternoon, I have the following concern: I have defined a POJO as you see it below: @Id private String idInformacion; @Indexed(direction = IndexDirection.ASCENDING) private Pais pais; private Date fechaCreacion; private String nombre;...
asked by 27.12.2018 / 21:45
0
answers

Error creating JDBC connection pool (sqlserver microsoft) payara shows error: java.lang.NoSuchFieldError: isEC

I am trying to create connection pool with sqlserver in payara 5 load the driver of sqlserver version 7 in the path \glassfish\domains\domain1\lib\ext but it shows the following error, when creating the datasource by the graphical inter...
asked by 26.12.2018 / 19:14
1
answer

Timer error made with java

I was doing a program in java and in this I need a timer that can run on multiple occasions without closing the program however I only get it to run once before I miss an error, in the code I use 2 Timer of the class java.util.Timer and two Time...
asked by 25.12.2018 / 20:06
0
answers

Load balancer does not have available server for client

I am setting up a client in nodeJS with eureka using zuul for routing management Here I have a test of a service with express and the configuration of eureka nodejs link running on the Port 3001 const Eureka = require('eureka-js-cli...
asked by 26.12.2018 / 19:21
1
answer

How to read or extract files in the src or JAR folder and execute them in the Operating System?

This code works for me, but when I add the program bajador.exe, inside my jar, in "/parseadores/bajador.exe", and change those lines to call the .exe from inside the jar, it does not work. Could someone help me how should I do it? I am using the...
asked by 25.12.2018 / 22:52
2
answers

How to iterate or traverse an Object of the Object class that contains objects of different class inside it?

I have this query in hql: String lHql = " from Grupo g" + " join g.Persona p " + " join g.Animal a " + " where g.tipo= "A""; Query lQuery = pSession.createQuery(lHql); Object l...
asked by 23.12.2018 / 17:50
1
answer

Error logging into the database: remove from the app

I have problems with my database, I try to login but it takes me out of the app. public class MainActivity extends AppCompatActivity { Button bt_Ingresar; Button bt_registrarse; EditText et_Nombre, et_Password; private Cursor...
asked by 25.12.2018 / 10:05