Questions tagged as 'java'

2
answers

How do I know if the user really wants to go back, when I click the back button on my cell phone?

I have a activity that stores certain data, and when the user presses the back button (Avd Hardware Button, for example), the application does not go back to the previous screen, but rather opens a dialog screen questioning whether the us...
asked by 05.02.2014 / 18:07
1
answer

How to get latitude and longitude without internet on Android? [duplicate]

How do I get the latitude and longitude in Java to Android without using the internet, only with GPS. I think there is some way to do it, because the "Maps" application of Android does not use the internet. If anyone knows...
asked by 16.04.2014 / 17:29
1
answer

Error while trying to deploy java tomcat application

Good evening, I hired a host on the host uol and tried to deploy a java application. I put the .war of my application inside the webapps folder of tomcat, it tries to upload the application and gives the following error: 019-01-03 21:57:51,446...
asked by 04.01.2019 / 01:21
2
answers

org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and may not be interacted with Command duration or timeout

This exception happens when some tests run on bamboo. The strangest is when squeeze locally it works and are random tests that break. Has anyone gone through this? The exception is this: org.openqa.selenium.ElementNotVisibleException: Eleme...
asked by 06.01.2015 / 15:07
0
answers

How to get the type (class) from a list in groovy

I have the following code: Set<String> list How do I know the type of this list? In this case it would be java.lang.String     
asked by 07.01.2015 / 13:57
1
answer

iterative sum bigdecimal

I have a ArrayList whose one of the fields is BigDecimal . I can not do this sum iteratively with a loop. Can anyone give a tip on how to perform this operation? If it were a% common%, it would do the following, but using the bigde...
asked by 04.08.2016 / 15:51
1
answer

How to check and get the value 0 or 1 of a string and save that number for that column?

I have to store the number 0 in a variable desc and 1 in the variable asc , if one of these values is found in string . How do I do this? package testes; import java.util.ArrayList; import java.util.Arrays; impo...
asked by 03.08.2016 / 19:05
1
answer

Java: Implementation of double-chained list (deque) with callback, generics, exception and lambda [closed]

I'm doing the implementation in java, however I have some problems with how to integrate generics and lambda in the deque: Deque.java : import java.util.ArrayList; public class Deque { private Element head; private Element tai...
asked by 19.06.2018 / 18:33
2
answers

java.lang.NoClassDefFoundError error while executing application

I made a program in java that uses JDateChooser so that the user chooses the date that he wants. It works normally inside Eclipse but when I export the project to a .jar and try to run through the cdm it has the following error:...
asked by 28.06.2018 / 19:30
2
answers

Average data entered algorithm

package ifal2; import java.util.Scanner; public class Lista3Questao4 { public static void main(String[] args) { Scanner entrada = new Scanner(System.in); int idade=0, contM=0, contF=0; double soma=0, somaaltura=0,...
asked by 01.08.2018 / 04:28