Questions tagged as 'java'

3
answers

GPS location returns only null (0.0,0.0)

I have an Android app with multiple addresses. When you click on an address, you want to get the user's current location and play on link from google maps http://maps.google.com/maps?&saddr=" , along with destination coordinates....
asked by 10.07.2014 / 15:36
1
answer

BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

I'm having this error when running my application: 05-Oct-2016 21:18:25.586 SEVERE [localhost-startStop-26] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class org.spri...
asked by 06.10.2016 / 02:48
2
answers

Macro, Capture MOUSE and KEYBOARD

I need to make a macro, capturing mouse and keyboard. How should I proceed in JAVA? do I need a specific API?     
asked by 29.10.2014 / 02:30
1
answer

Is it possible to convert an ArrayListDouble to ArrayListInteger?

So, guys, I wonder if there is and how to convert a ArrayList<Double> to a ArrayList<Integer> ?     
asked by 10.11.2017 / 19:37
1
answer

What is the difference in executeQuery and executeUpdate?

What's the difference and when should I use executeQuery() or executeUpdate() ?     
asked by 12.07.2018 / 06:15
2
answers

Check if an email exists or your email domain

I need to check in Java whether an email or if your domain exists. I do not mean to treat the validity of the email, using for example regular expression, but rather really check if there is an associated account. I have seen some forums on the...
asked by 12.01.2018 / 13:42
3
answers

Java method that returns difference in hours

Why is the method below returning -1? It should return the difference in hours between two dates. public int diferencaHoras(String h1, String h2) throws ParseException{ DateFormat df = new SimpleDateFormat ("dd/MM/yyyy hh:mm"); Dat...
asked by 09.01.2018 / 03:47
2
answers

Why do even numbers do not have the same output as odd numbers?

I made a program that asks the user for a number that will serve as maximum value. And then the program shows the odd and even numbers from 0 to that number. I used printf to have an output like this: Os números pares são os seguintes:...
asked by 28.10.2017 / 11:48
3
answers

Current or formal argument lists differs in length

I have the following code snippet: import java.util.Random; import java.util.Scanner; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextArea; import java.io.*; import java.lang.String; public class findthewordgam...
asked by 26.09.2017 / 18:42
3
answers

iReport 3.6 does not open

I and my team work with iReport, I have not used mine in a while, but I needed to open it for maintenance recently and it does not work. The splash screen displays "Loading cached objects" and terminates the process.     
asked by 20.01.2015 / 12:16