Questions tagged as 'java'

1
answer

Errors in android Studio, does not recognize CardView

Please, I have this error for several hours, the card view support appears in red, and another thing, the folder .gradle, thanks also appears in yellow.     
asked by 06.03.2018 / 03:37
0
answers

ListView does not show anything

I am trying to fill a ListView but it does not show any exceptions or show any cell InicioController.java public void buscar(){ System.out.println(texto.getText()); try { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getReso...
asked by 05.03.2018 / 11:44
0
answers

Doubt with HashSet

How could I use the following code with a HashSet? This part of the code is used to assign a Manager to a worker, but I have a problem in the part that I mark with bold, because as I do it, it marks me as an error. The Hashset I am using i...
asked by 08.03.2018 / 23:35
1
answer

Sum of hours as doubles

I have values that I have to add as hours, the problem is that these values reach me as double , where the first number is the hour and the second is the minutes, that is, for example:    valueA = 09.30 - > 9 hours and 30 minutes   ...
asked by 08.03.2018 / 11:41
3
answers

Create a 4x4 arrangement in java

I need to create an arrangement with the following numbers and calculate: By line: The average and the standard deviation The average and standard deviation of the entire arrangement    {3,8,7,6} {7,5,7,4} {3,2,1,0} {9,6,4,8} This i...
asked by 17.04.2018 / 03:01
0
answers

Many files are generated in Tomcat's temporary folder

One of our clients informed us that the application that we did for them and that is hosted on AWS was falling constantly. We started to review the logs and discovered that the server was falling and throwing the following exception: "too man...
asked by 17.04.2018 / 13:51
0
answers

In variable, assign value, change it in one function and pass the changed value to another

I'll get to the point; I'm doing something like this: public class clase{//clase principal int valor;//variable global if (post.containsKey("xempieza")) { if(valida()){ bit.bitHtml = recibedato(); //bit.bitHtml obtien...
asked by 18.04.2018 / 16:21
2
answers

How to extract and compare the values of an object stored in an array? Java

I have a ArrayList of clients and I have to find a client by name and compare his debt with another value to know if he can buy or not. This is my code. It tells me that the method.getName is not defined and that it can not resolve DEBT....
asked by 23.02.2018 / 16:59
0
answers

How to get TextBlock from an image using TextRecognizer vertically

I am developing an Android application that reads text from an image in order to scan a DNI. For this I use the object TextRecognizer and its method .detect(Frame) which is passed a frame and he analyzes it by returning a...
asked by 23.02.2018 / 10:49
0
answers

Variable changes to unexpected value

I have a problem with a variable that is called contador . I declared it with a value of 0 but when running the program the variable contador has the value of 8. This is the only part of the code that uses the variable: public...
asked by 27.02.2018 / 18:45