Questions tagged as 'java-8'

1
answer

Exercise with Recursion Search

My problem is this: Certain type of pump, requires a detonator to activate. These pumps are made in such a way that only their detonator can activate them. This is done by having the detonator and the plug of this one different for each pump....
asked by 26.09.2016 / 01:49
1
answer

Java 8 List Get non-repeated items from a list

Case 1: I have a List with a series of elements that can be repeated. List<String> nombre; nombre.add("Persona 1"); nombre.add("Persona 1"); nombre.add("Persona 1"); nombre.add("Persona 2"); nombre.add("Persona 3"); ... Is i...
asked by 12.04.2018 / 11:46
2
answers

How do I make a variable of the same type of class in Javascript?

I want to make a simple list linked with javascript and for that, I need to make a variable of the same type of the class, in Java I did it like this: class Nodo{ public char datoNodo; public Nodo sgte; public Nodo(char dato){...
asked by 09.08.2018 / 23:07
1
answer

Error generating war file - Java Spring 5

I have my working environment in Ubuntu 16.04 and I am working with spring 5, I have tried to generate my war file but it generates the following error messages: Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-war-pl...
asked by 02.02.2018 / 06:06
1
answer

JPA - Problems with persist of @ManyToOne

I am working on an application that requires data from faculties and careers to be saved and I have created the following entities:    Faculty @Entity @Table(name = "uc_facultades", schema = "uc") @SequenceGenerator(name = "Facultades_id_s...
asked by 28.01.2018 / 00:06
1
answer

Is there a library for Voice recognition in Java? [closed]

I have already searched for my question to ask, and wanted to know if you know of any bookstore and how to use it? If you could give me a tutorial, pdf, etc. I would really appreciate it.     
asked by 16.10.2016 / 06:06
1
answer

data sum of a 4 array without reperting

good I want to add 4 data if it is in the array a b c d but if you add once and do not add again look at a = 36 data, b = 28, c = 7, d = 3; they are the people who have an amount; if I join in an interacion and the code repeats I should not add...
asked by 01.12.2018 / 04:41
1
answer

how I delete the keys and the equal {=} that the hasmap creates when I compile the code

when using collections in java I have this problem when compiling the code create me these keys and the sign of the same and inside add the code {=} as I delete those keys and that sign of the same HashMap valor = new HashMap(); valor...
asked by 12.07.2018 / 03:08
1
answer

I can not solve a problem with an if

I'm doing a game in which you have to calculate the time in seconds that is requested by keyboard, and when that time exceeds the end of the game. But when it goes through that if , it does not calculate time or it's infinite or it just le...
asked by 24.01.2018 / 20:40
2
answers

Remove elements from an array that are already in another array

Dear, I have an initial student array and an array of new students. How can I do to obtain an array of new students that are not in the initial student array? This using java lambdas. UPDATE List listaFinal = new ArrayList(); for (Alum...
asked by 14.11.2017 / 23:21