Questions tagged as 'java'

2
answers

Get metadata in images with PNG format in android

Part of an application that I am developing, has to obtain the metadata of the images for its later use in it, until now what I am using is ExifInterface , with something similar to the following: //.. String filename = "DirectorioDondeEstaEl...
asked by 14.01.2016 / 15:07
2
answers

Problem tildes and special characters java

I have a problem with the accents and special characters in a Java project in Eclipse. It is an imported project and I have already configured it in Eclipse on Windows - > Preferences - > General - > Workspace - > Text file encoding...
asked by 23.03.2018 / 12:52
1
answer

Capitalize first letter a word [duplicated]

I want to capitalize the first letter of all the words in a phrase  EJ:    hello world And the expected response is:    Hello World I'm using java and I have not managed to generate a method that can do it.     
asked by 19.11.2017 / 18:25
3
answers

Why does Null Exception give me?

My method is as follows: public boolean addJugador(String nombre){ boolean add=true; Jugador j= new Jugador(nombre); if(nombre!=mesa[jugadoresActuales].getNombre()){ mesa[jugadoresActuales]= j; jugad...
asked by 14.11.2017 / 12:51
3
answers

Error modifying a table in MYSQL from Java

"UPDATE usuarios SET Telefono= "+tel+", Domicilio= "+dom+", Contraseña= "+contra+" WHERE Id="+id;    This is the sentence that I use when updating the database, the data of the columns and its name are correct but it sends me the following err...
asked by 27.10.2017 / 17:10
1
answer

How do I get my data from a SELECT MAX (user_id) FROM user

I have my next method where I want to get the last record of my user table, but it is bringing me 0 when I should bring 4. Where is it failing?    Method public static int getIdOfEmployee(){ Connection con = null; int id_usuario =...
asked by 13.12.2017 / 19:10
2
answers

problem with the use of java calendar

I'm trying the class Calendar in java, I made a class that returns the current time and minutes, when I ask for the first time the current minutes work, but when I do the second the minutes do not change, for example I execute the method to 12:3...
asked by 24.08.2017 / 04:22
1
answer

The PreparedStatement gets stuck when I ask a lot of questions

I have a method that has to be constantly sending requests to the server where the database is hosted, the place where I try to connect to the internet via satellite dish. The function of the program is to send a number also keeping date and...
asked by 16.06.2017 / 11:21
1
answer

How can I adjust the text entry position in JAVA?

I have the following code: System.out.println(""); System.out.println("SELECCIONE UN MODO PARA LA GENERACION DEL REPORTE:"); System.out.println(""); System.out.println("1. MENSUAL");...
asked by 10.07.2017 / 12:44
1
answer

Use the same method to count one option at a time (Java, eclipse)

Hello, this is my first question and my teacher asked me for homework for an exam that we did with the following program in java (we use eclipse mars): public static void main(String[] args) { System.out.println("Total de Alumnos:...
asked by 02.03.2017 / 04:35