Questions tagged as 'java'

0
answers

How can I fix this android notification error for services?

I'm making an app that uses audio, and I need to include a service so that when the app is exited, it will still work like the players. But it turns out that it only brings me the audio list but when I click it it sends me a message that says "D...
asked by 11.10.2018 / 18:51
1
answer

It does not return the value of AJAX

I have an index in the path webcontent / index.jsp and it calls a servlet through ajax and returns the value $(document).ready(function(){ $.post('actionServlet', { valor: "1" },function(responseText) { alert(responseText) $(...
asked by 11.10.2018 / 17:26
2
answers

Notifications on android

Hi, I want my application to send a notification when I touch a button but it does not happen I do not know what I did wrong. I'm using this (work with sketchware): Notification.Builder mBuilder = new Notification.Builder(MainActivity.this); m...
asked by 10.10.2018 / 22:15
0
answers

like show record after being inserted in BD with JAVAFX

my problem is that when adding a new record in the database is not displayed in the tableview, if you add it to the database, and it shows the existing records in the tableview, I have to close the project and execute it in eclipse again so that...
asked by 10.10.2018 / 23:08
0
answers

Because it marks error of java.lang.ArrayIndexOutOfBoundsException: 3

I'm trying to make a magic picture but for some reason it marks me wrong         int n = 3; int i_a = 0; int j_b = 0; int P_I = n / 2; int[][] cuadro_m = new int[n][n]; int temp = 1; for (int i = 0; i < n; i++) {...
asked by 14.10.2018 / 06:16
1
answer

Because I lose data when reloading the JAVA WEB page

I am new to this of hibernate and spring mvc, I have managed to show the data of the "users" table, the first time I load the URL If it shows me the data, but when reloading they disappear. code of the model class "UsersModel"...
asked by 14.10.2018 / 03:42
1
answer

How this program works

In class, we perform the following program, used to calculate the first n prime numbers of some amount that the user enters by keyboard, but I have not understood the teacher well, I am new to this, thank you very much. Scanner sc = new Sc...
asked by 11.10.2018 / 10:20
2
answers

Using ArrayList [closed]

I wanted to know if there is any way to remove the elements of an ArrayList from a certain index to the first element. That is, given an ArrayList of characters, I want to delete all the elements from the index 4 for example up to the index 0. I...
asked by 11.10.2018 / 09:04
1
answer

PRINT DATA IN A TWO-DIMENSIONAL ARRANGEMENT

Hello guys, I'm doing this program where I have to ask the user about 5 students. The issue is that they ask me to print the data that the user gave me using a bidimiensional matrix in the following order in the second option of the menu. : s...
asked by 10.10.2018 / 04:32
1
answer

Error java.lang.NoClassDefFoundError in using google maps in SDK 28

I just updated SDK for Android Pie (28) and I find that in debug everything works fine, when it comes to release , in an activity that uses google maps, it returns the following error 2018-10-10 11:26:21.673 5902-5946/app.montserr...
asked by 10.10.2018 / 09:40