Questions tagged as 'java'

1
answer

Exception in thread "main" java.lang.IllegalStateException: No match found at java.util.regex.Matcher.group (Unknown Source)

From the line D:\csv\rssi_data_upload_00_11_74_86_49_7F_1519231770 I need to execute the regular expression upload_(.+)_[0-9]+ to obtain the value of 00_11_74_86_49_7F . This is my code: public static void main(String[] args...
asked by 11.03.2018 / 06:48
1
answer

The 'X' method could not be found in the 'Z' activity

When I run my code I get an alert that the program stopped. The code is about a motorcycle rental app. That I have to calculate the rental price per day: public class MainActivity extends Activity { private RadioButton radio0,radio1,radio...
asked by 10.05.2018 / 14:21
1
answer

Problem trying to order a string vector inherited from VectorString

I have a VecCadenas class that inherits from Vector<String> : public class VecCadenas extends Vector<String> I want to sort the vector (which is assembled in the constructor from a line-by-line text file), I can ver...
asked by 12.05.2018 / 14:11
1
answer

my first NullPointerException [duplicated]

As you can guess the title of my question, I'm totally new to Java and programming. Without further ado, Eclipse does not let me compile for this error and tells me that it is on the line: System.out.printf("Digite el %s numero, por favor",...
asked by 10.05.2018 / 04:29
2
answers

Image in Drawable Get route URI Android

I would like to be able to put an "x" image by hand in the Drawable folder of android and be able to obtain the Uri route of that image, so that I can then do Img.setImageURI(aca quisiera la Uri de esa imagen que agrege a la carpeta Drwable)...
asked by 26.10.2017 / 15:03
2
answers

How to find out if each character after the variable i of a for, is a number, and if it is to add a comma at the end

I have the following: for (int i = 0; i < result.length(); i++) { if(result.substring(i).matches("[0-9]+") && result.substring(i+1).matches("[0-9]+")) { result += ","; } } What I want...
asked by 28.10.2017 / 05:23
1
answer

Requested bean is currently in creation: Is there an unresolvable circular reference?

I'm new to Spring and I need help. I have among others, these classes: package com.cice.crud.domain; import java.io.Serializable; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.pers...
asked by 20.02.2018 / 20:44
1
answer

how to update a data table by cleaning the records by clicking on a button?

I have the following code which is inside of a p: fieldset, they are two inputs one for the year and another for the month, and a search button, what it does is filter records according to those two parameters <p:inputText id="anio" s...
asked by 22.03.2018 / 17:23
1
answer

how to show a ui-icon in primefaces when the value of a variable is true or false?

I have the following table, which shows boolean type values and shows them that way <p:dataTable id="horarios" rendered="#{ConsultaPersonasUnidadFisicaComponent.muestraHistorial}" var="consultaHorario" style="max-width:3000px;max-heig...
asked by 28.02.2018 / 17:50
2
answers

Error WindowLeaked when displaying a Dialog

Performing some tests to display a custom dialog box of class Dialog , you are throwing me an error of type " android.view.WindowLeaked " when you rotate the screen when it is displayed. From what I have read on the Internet it is an...
asked by 01.03.2018 / 12:04