Questions tagged as 'java'

1
answer

Comparison with compareTo and Sort

Good afternoon, I'm starting in Java and I'm having a problem. I want to sort my list alphabetically. I created a class Pessoa and another class TestaPessoa . Person public class Pessoa implements Comparable<Pessoa> {...
asked by 06.07.2015 / 21:08
1
answer

Error: Parameter index out of range (1 number of parameters, which is 0)

I'm trying to remove a data from the database, but the following error occurs:    Parameter index out of range (1 > number of parameters, which is 0) Can you help me? public void remove(Bean e) { try { PreparedStatemen...
asked by 07.07.2015 / 04:39
2
answers

Instantiate an external directory Java class in JSP

I created my application Java with Eclipse in the Meus Documentos/workspace/TesteJAVA/ directory Now I want to call a class with JSP , I want to know how to configure to get the application from this directory or sh...
asked by 26.10.2015 / 00:09
2
answers

How to use HashMap in this case?

I'm a beginner in Java. I need a program that reads the name and number of some people, and then type a number and the program returns the name of the person associated with the number. I was advised to use HashMap. If anyone has any examples .....
asked by 05.11.2015 / 22:50
1
answer

Consuming JSON webservice with the use of AsyncTaks [duplicate]

Well, I'm trying to make an application that logs into a database, I was previously using the thread method to get it working, but at the time of reporting the error messages on the screen or something, it was not. I have modified it to use as...
asked by 25.05.2015 / 14:40
2
answers

Error while placing image in ImageButton

When there was only a drawable folder this error was not happening, but the app was distorted in other resolutions, hence I created the drawable folders with different resolutions (ldpi, hdpi ...) and inside I put the image that I want to set wi...
asked by 26.04.2015 / 16:10
1
answer

Error 505 when installing Google Play App on Lollipop

I'm a developer and I'm having trouble installing an app in the Lollipop version. I have researched and believe that it is a packages error, ie there are two Apps calling the same package (but I'm not sure), this is part of my code. Both ap...
asked by 17.04.2015 / 15:00
1
answer

Change icon mylocation

I created an xml with an ImageView informing the image that I want to put in place of the icon. I want to put this image in place of the blue ball in the image below.    Is it possible to change the icon of mylocation?   If yes, what is t...
asked by 19.11.2015 / 14:17
1
answer

ToolBar Android

Personally, I wanted to be able to take the
asked by 23.11.2015 / 19:28
1
answer

Update column and table definitions with Hibernate

Good afternoon. I would like to know and confirm if you have any way to update table and column definitions in each schema using Hibernate. For now, what I've seen so far is that Hibernate only creates tables and columns, but does not dele...
asked by 06.03.2015 / 18:10