Questions tagged as 'java-8'

2
answers

help to close the program

Hello, I need to close this program but I have a couple of blunders. I need if you can help me find the problem, the program consists of a student registry for scholarships, that the data is by console this is the code. package control8o...
asked by 23.10.2018 / 03:47
0
answers

Best way to use a Java 8 stream with class and subclass

Dear community, I have a problem in how to use streams, I have 3 classes: public Class A{ String string1A; String string2A; List<B> listB; . . . } public Class B{ String string1B; String string2B; . . . } public Class C{...
asked by 15.10.2018 / 18:54
0
answers

java.lang.NullPointerException - Connections from JNDI always null

Days later ask for help to get a database connection through JNDI ( Obtain connection to the database through the datasource of the application server ), well the connections worked, however I have the JNDI as a constant within the code so I am...
asked by 28.10.2018 / 02:50
0
answers

Can you help me to leave a single ArrayList of the buttons

public class Tablero extends JFrame implements ActionListener { private ArrayList<Boton> listaBotones = new ArrayList(); private ArrayList<ImageIcon> listaImagen = new ArrayList(); private ArrayList<ImageIcon> listaBtn = new Ar...
asked by 02.10.2018 / 01:50
0
answers

Sorting a List without affecting the entire List

I am doing tests to do with Java8 an order of a List and I have problems to understand how to do it with java8.I have a list of people who are sorted when they come for their work but I want them to be ordered by age for each job descending That...
asked by 25.09.2018 / 19:53
0
answers

Out of Memory Error with JRE just installed

After having installed a JRE on a machine with Debian, when I try to consult the installed version of java I get an error. If I open the log it appears more or less the following as relevant information Out of Memory Error (os_linux.cpp:2640)...
asked by 22.09.2018 / 18:10
0
answers

Websphere liberty IBM error 500

I have a problem, to implement a custom 500 error screen, from a server Websphere liberty IBM v17.0.0.4. In the web.xml file I used the following configuration: <error-page> <error-code>500</error-code...
asked by 19.07.2018 / 22:00
1
answer

It does not show Alert when it is inside a CompletableFuture (JAVA)

I have the following code snippet: Alert alert; String resultado; resultado = "incompleto"; CompletableFuture <String> futureSupplyAsync = CompletableFuture.supplyAsync(() -> { Future <String> future = executor.submit(new M...
asked by 11.07.2018 / 22:14
1
answer

how to get x and cursor coordinates within a textArea javafx

I have a TextArea in javafx but do I need to get the position x, y or x coordinates, and the TextArea courses as I get them?     
asked by 14.07.2018 / 23:03
1
answer

Objects with vector attributes - relationship - Java

I have the Prestamo classes public class Prestamo extends Pago{ private Fecha[] fechasPago; public Prestamo(){} public void setFechasPago(Fecha[] fechasPago){ this.fechasPago=fechasPago; }...
asked by 22.06.2018 / 04:23