Questions tagged as 'java'

1
answer

POST requests with loading icon on Android

I'm doing an Android application that will make some requests to an API, I generalized these requests in a class (RequestApi), where to use it, it would be enough to create a map with the information that I will send to API and call as follows:...
asked by 05.12.2017 / 23:06
1
answer

Convert an Object to ArrayListVisitant

I have a method that returns values of firebase . When received, I create a new ArrayList<Visitante > and the saved in Object . ArrayList<Visitante> visitantes = new ArrayList<>(); f...
asked by 05.12.2017 / 22:49
1
answer

Write objects to file- Java

I have the following code: package p10; import java.io.*; import java.util.*; import myinputs.Ler; public class P10 { public static boolean verificawl (int i) throws ExcecaoWhile { if(i<0||i>7){ throw new ExcecaoWhile("Dentro do...
asked by 06.12.2017 / 00:43
0
answers

I want to get the same ID

Good afternoon I was wondering if it is possible to get the phone ID for the same functions or as in the example below. I want to put the ID that is signaled black below the "SMS". Is it possible to place? How can I do it? Below is the code pri...
asked by 21.11.2017 / 17:59
1
answer

render button according to status

I'm using the following code to render my button to only appear with the status Waiting for approval but does not occur. <a4j:commandButton value="Enviar Solicitação" action="#{solicitacaoImpressaoBean.inserirSolicitacao}" styleCla...
asked by 22.11.2017 / 12:58
0
answers

ManyToMany include other fields

Hello, I have a ManyToMany relationship between envio and carro , and I would like to understand how to save in the same table, which is created through this relationship, the entity id Local . > Entidade Sendin...
asked by 07.12.2017 / 00:32
0
answers

Android - App build failed on mobile debug

I'm having a problem when debugging and generating a signed Apk, when I'm going to open the application, an error is generated, I can not get the solution to this error, the Android simulator works perfectly, but when I'm going to debug on my mo...
asked by 07.12.2017 / 04:25
1
answer

Error while in joption pane: loop

I'm having a serious problem with the while in the following algorithm: You have a data set containing the height and gender (male, female) of 50 people. Make an algorithm that computes and writes: 1 - the highest and lowest height of the gro...
asked by 07.12.2017 / 02:33
1
answer

RowFilter.regexFilter does not filter columns of type Date in JTable

I have JTable with a TableModel custom, and I'm trying to run a search field using JTextField . However, columns of type Date and my class Cadastrante are not searched. In my TableModel , I overwritten...
asked by 08.04.2016 / 15:27
0
answers

java.lang.NullPointerException when passing to servlet

Hello, I have a problem in passing the data from a jsp to the servlet that will insert the data into the database, I made three forms for scheduling and in the third it will send to the servlet but the java.lang.NullPointerException error appear...
asked by 24.11.2017 / 13:55