Questions tagged as 'java'

0
answers

Login with Jsoup

Does anyone know how I can log in this page using Jsoup ?, I've tried this: Connection.Response loginForm = Jsoup.connect("https://www.saes.escom.ipn.mx/") .method(Connection.Method.GET) .execute(); Map<S...
asked by 30.01.2018 / 00:21
0
answers

Project GUI studentsNotes java

I'm new to the forum. They recommended it for programming topics. I am developing a small project with a GUI made with swing which is able to assign an array of String to a student object and an array of doubles to the same object. When the w...
asked by 30.01.2018 / 23:42
0
answers

retrieve date from an ajax call in struts

I have to recover from java a date that is passed as a parameter in the url of the ajax call. The parameter in the URL from the ajax call gets it right, the problem comes from the java part that is null. if(id=='A'){ tipoFactur...
asked by 24.01.2018 / 10:33
1
answer

Binary search, return of all elements of an array that are equal

The binary search always returns the first element that is equal to the one we are looking for, but as we could do to return the positions of all the elements that are equal to the one we are looking for, for example, we have a vector of: H-H...
asked by 18.11.2017 / 11:56
1
answer

JPA @ManyToMany how to bring related objects

I'm mapping two objects: Professor and Vehicles, it's a n to n relationship so I'm using a relationship table called "rel_prof_vehicle". The problem comes when it comes to obtaining any object Professor or Vehicles, it brings me the whole object...
asked by 27.03.2018 / 22:08
0
answers

Does anyone explain this exercise to me? [closed]

I'm doing this exercise:    Consider that you are developing a Java program where you work with   the Professor superclass and the ProfessorEmerit subclass. Create code for   to these classes that meet the requirements we indicate.       As...
asked by 28.03.2018 / 15:12
0
answers

It does not write (save) the XML it takes from the server

I have an app that previously read an xml file from a server and saved it in the phone so that the user could see the content without internet connection, I have passed my application to kotlin and I find the error that the file no longer save i...
asked by 12.01.2018 / 05:47
2
answers

From two arrays make a new one but with the numbers that are not repeated between the two arrays [duplicated]

The exercise tries to compare two arrays with random numbers. the numbers that appear in one array, but in the other, an array with these numbers must not be created, as shown in the example.    Array 1: [5,7,9,2,9,8,3,2,4,8]       Array 2...
asked by 27.02.2018 / 19:48
1
answer

Why this error: required java.lang.string found int (Android Studio)?

I have a table in sqlite with an integer field called Tipo , it happens that according to the type number certain options will be shown to the user, so I made a switch but it marks the error in the number of case of switch...
asked by 20.08.2018 / 19:09
1
answer

Update data of a column in JTable without affecting the other data

Good morning. maybe it's something very simple, is there any way to update the data of a column by means of a button? this without affecting the other data of other columns. As you can see in the image, the purpose is to change all the data i...
asked by 15.09.2017 / 18:18