Questions tagged as 'java'

1
answer

Method to extract data from a Set in Java

I am creating a method to extract values from a Set of clients , the values in question are the ID of all the clients present in the Set, the ID is obtained calling getClientID () . My method: public String[] extractIDsFromClientSet(Set...
asked by 11.11.2018 / 16:17
1
answer

IllegalAnnotationsException error when printing XML

When I print in XML the data ( nombrep and especialidad ) of the class Profesor I get the error that it has two properties with the same name " especialidad " and two others with " nombrep ". Does anyone know...
asked by 09.11.2018 / 15:48
1
answer

Apply in a JPanel the deleted one of a JButton from a BD SQLite

Very Good, It turns out that my program when starting recreates the JButtons based on a DB with a WHILE, and I have already programmed the part in which I can delete the person from a JTable, what happens is that in doing so the JPanel follows s...
asked by 29.08.2018 / 17:42
2
answers

Print only matches in an array

I have two arrays, one with 20 random numbers and another with those same 20 numbers but WITHOUT the repeating numbers. In addition, the second array is sorted in ascending order. My intention is to print the numbers without repetitions but with...
asked by 28.11.2018 / 07:16
2
answers

Swap the array data and display it in reverse. JAVA

I have this code that at first asks me for 3 numbers that are saved in an array, what I want to do is copy the contents of that array and print it upside down. EJ. You capture 1, 2, 3 and what you should see first the first arrangement with t...
asked by 13.08.2018 / 03:05
1
answer

Help with data management in Oracle, how to use the TO_CHAR for a NUMBER data type?

I have a query which obtains data of type NUMBER in the BD, what I do is show the result of the query in a .csv file and at the time of showing that data the fields of type NUMBER which are (IMPORTE_UNO, IMPORTE_DOS) it does not show deci...
asked by 26.07.2018 / 06:29
1
answer

Error in recyclerview filter (Android Studio)?

I happen to have a project in android studio which performs a search in a recyclerview from a searchview, when debugging my application I see that if you filter the data well but show the data filtered in the recyclerview shows data that do not...
asked by 15.08.2018 / 06:52
2
answers

Problem to show JSP variables in javascript alert ()

I am testing warning messages on my website, I am collecting values passed through the session and showing them in an alert. In this first part I get the values, check it and pick it up perfectly <% String registro= (String)session.getAt...
asked by 15.08.2018 / 19:18
1
answer

Add minutes to current date in java

I have a problem when it comes to obtaining a new date in the calendar after adding a few minutes to the current one. I start getting the current date: java.util.Date fechaActual = new java.util.Date(); By means of a function that I have...
asked by 18.07.2018 / 16:32
1
answer

How to capture html button click to call an android java method?

Dear liking in greeting them, I am working in Android Studio creating an environment with WebView, in this there is a button that when pressing it should call a function created in java. Is it possible to approach this dynamic linking with addJa...
asked by 06.08.2018 / 21:06