Questions tagged as 'java'

1
answer

Knowing the highest repetition code in a data structure (list)

I'm doing a Java Data Structures project and I have a list that is simply chained that receives the code, name, sex, and course of each person. I need only validate which code (integer type) that repeats more often and show the last value of the...
asked by 18.04.2014 / 05:43
1
answer

Using Spring Security

I'm using Spring security in a project, I was informed that I should get the jdbc driver and put it in the tomcat lib folder so that the whole spring process works correctly, since it would be tomcat that would make the connection, with bench f...
asked by 14.04.2014 / 15:56
1
answer

Simulation of TV Remote Control

I am developing a system where there should be a possibility for the user to interact with the program, pressing one or more numeric keys to change the display of multimedia contents (text, audio, video and image) simultaneously. Currently th...
asked by 14.03.2014 / 20:22
1
answer

Using Hibernate to generate tables with h2

I'm developing an application in which I decided to use h2 as the embedded database. This is the first time I'm using this type of database and I'm having trouble generating the tables through hibernate. My hibernate.cfg.xml : <hibernat...
asked by 03.05.2014 / 23:02
1
answer

Problem with timer in Java

Explanation: I have a JTextField component that would be a countdown timer, but when I use ActionListener this way: public static ActionListener alredBGolem = new ActionListener() { public void actionPerformed(ActionEvent e...
asked by 18.02.2014 / 18:05
1
answer

Java ArrayList - Overriding values

I need to perform the following activity: Consider an application to store the following person data in an address book: name, address, and telephone. Specify a TAD to store the people data and the operations required to enter, query, and dele...
asked by 28.02.2015 / 21:02
1
answer

Requests in AJAX works in WebView?

I have the following WebView : WebView myWebView = (WebView) findViewById(R.id.webview); myWebView.getSettings().setJavaScriptEnabled(true); myWebView.getSettings().setBuiltInZoomControls(true); myWebView.loadUrl('http://192.168.0.4:8080...
asked by 23.05.2017 / 17:11
1
answer

How to query in ManyToMany tables?

I have two tables / entities in the database with the following attributes: Car (code, plate, color) Accessory (code, description). public Carro buscarCarroComAcessorio(Long codigo) { return (Carro) em.createQuery("select c from Carro...
asked by 07.10.2015 / 15:28
1
answer

In Spring MVC, how to send information to the view (.jsp) without using ModelAndView?

I'm developing a web application in Spring MVC. I have a method that returns a list (java.util.List) and needs to pass it to the view (.jsp), however without updating the page. I would like to know some other way to pass the Java informati...
asked by 25.09.2015 / 18:48
1
answer

Convert svg to java png

I'm trying to do an SGV image conversion to PNG, but I'm having some issues. My code: String svg_URI_input = Paths.get("/home/ivan/Documentos/imagem/Svg2.svg").toUri().toURL().toString(); TranscoderInput input_svg_image = new Transco...
asked by 02.07.2015 / 14:29