Questions tagged as 'java'

0
answers

Activity closes when executing handler

What I want is to call a class every x time to show a data that I have in MYSQL and that is updated. Then I thought about creating a handler and calling the class that connects me with MYSQL with a delay but I close the activity and go back t...
asked by 17.04.2018 / 15:15
1
answer

Run a program with Selenium on Windows, remotely from an Android app? [closed]

I'm doing an application on Android , which sends requests to a program, which I have on a virtual machine, with Windows operating system , this program performs a series of Actions with Selenium depending on the request you receive, is a J...
asked by 16.04.2018 / 19:40
0
answers

Load an lwjgl.opengl.Display in javax.swing

I have a Display object from the java lwjgl library: link the one that I have some 3D objects loaded, and I update the display every frame in the following way: In a class created by me, called DisplayManager: public static void updateDis...
asked by 26.04.2018 / 15:46
1
answer

XSSFWorkbook Apache POI Does not free memory

I read an excel *.xls of about 10 megabytes, in the next step the process increases javaw.exe in 1.5 Gb. public void importExcelMedidas(FileBean fBean) throws IOException { InputStream input = new ByteArrayInputStream(fichero...
asked by 26.04.2018 / 15:15
0
answers

How to properly use RMI?

I have a base code with interfaces and some classes, the application in general has to simulate an agenda and the only thing that had to be modified were a few classes because the interfaces and some methods were ready to be used, however when t...
asked by 16.04.2018 / 02:47
1
answer

Check if there is a word in a txt before reading it

I was trying to do this exercise    11.Implemente a method that given an input file (file that will be read) and one of   output (file that will be written), specified with your route, and two words:   word Replace and new Word, return the co...
asked by 16.04.2018 / 05:03
1
answer

Read a CSV file and create an object with its data

I need a little help. I have a CSV file and I am reading it like this: public class LectorDeArchivosCSV { private List<Alumno> listaAlumnos; public LectorDeArchivosCSV() { listaAlumnos = new ArrayList<>(); } public List<Al...
asked by 15.04.2018 / 22:19
0
answers

Complexity time of a circular array

I have a problem that tells me that I have an array of N comparable elements and an array b that is circular from a. And it asks me to design a generic function in Java that receives a circular array b of comparable elements and a t value of gen...
asked by 16.04.2018 / 22:09
0
answers

Show the variable with its different value

Good morning, I have a doubt I am generating this cycle: while (rs.next()) { num1 = rs.getInt(1); texto1 = rs.getString(2); texto2=rs.getString(3); } input1 = num1 (first value) input2...
asked by 13.04.2018 / 20:26
1
answer

how to know the most repeated char within an array?

I need to know the most repeated char within an array Scanner var = new Scanner(System.in); String cad; System.out.println("escribe caracteres"); cad = var.nextLine(); char[] a = cad.toCharArray(); I do not stop there.     
asked by 21.04.2018 / 19:07