Questions tagged as 'java'

0
answers

Why do I have a "java.util.InputMismatchException" in my scanner?

I have the following error and I can not find the reason for its origin. Under this situation what methodology can I follow to solve the error? Analyze the code and the piece that sends the error is: arrayMuestras[i] = sc.nextDouble(); I...
asked by 02.11.2018 / 15:24
0
answers

Problem getting date with jDateChooser

I have a jDateChooser from which I want to obtain the date but it is impossible for me to recover it I have the following fragment: Date date = jDateChooser_caducidad.getDate (); in theory it should work but what it collects from me from jDate...
asked by 02.11.2018 / 10:43
0
answers

does the URI id change when the app is restarted?

I select the file in mp3 to save it in shared preferences and while it does not close the app the song sounds and everything, when restarting the app as it throws error and it does not sound anything, that the id that points to arhivo with URI,...
asked by 02.11.2018 / 02:38
1
answer

how do I make a method run past X time after pressing a button?

I would like to know how I can do so that after X seconds after executing a button, send me to a method that does what I have to do. A bit of the context: I have a button that gives a jLabel1 with a .gif so I want half of the jbelle1 to run a...
asked by 02.11.2018 / 05:57
0
answers

Read and show database FIrebase in Recycler View

I'm still a novice in this. I have connected the app with the Realtime Database of Firebase and I want to show the data in the Recycler View, I put the dataSnapshot.getValue(Comida.class); and then I notify the Recycler View of the...
asked by 02.11.2018 / 11:09
0
answers

How to get the coordinates of the area that is displayed on the screen?

I need to obtain the geometry of the screen area (rectangle) or the coordinates of the 4 points that delimit this area (vertices of the rectangle), what I want to achieve is that as the map moves, only the elements are shown that are within the...
asked by 31.10.2018 / 18:26
0
answers

How can I run a program by pressing a button on android studio

Hello everyone I need your help, I want in android studio press a button ("Start") and when I go to the second activity, I start to run the program that is random words I need to know how to make them go by one by one Where should I put th...
asked by 04.11.2018 / 00:13
0
answers

Run Servlet Intellij

Hi, guys, I'm new to the Servlets and I'm trying to implement some simple ones, but I'm having a problem, I'm telling you. I am using the Intellij editor for the implementation of it. I have everything implemented: the class index.jsp and a c...
asked by 04.11.2018 / 10:30
1
answer

When a date type field is saved in the database, it is saved with a date from a previous day

I am programming an application with the following technologies: Java, Spring, Hibernate, Maven, Msql. The IDE that I am using is Eclipse. The problem that I am having is that when an entity persists, one of its properties is of Date t...
asked by 04.11.2018 / 02:22
0
answers

Does not validate my AndroidStudio Login Button

I'm setting up a simple login with connection to a remote server like 000webhost but what happens is that my "ENTER" button does not perform any action, I already gave the code a thumbs up and nothing. I await your help. Thanks. btnEnt...
asked by 07.11.2018 / 06:36