Questions tagged as 'java'

1
answer

Data truncation: Incorrect integer value: '' for column 'idFactura' at row 1

When I run my application in java, everything works perfect for me without anything altering it, but that little detail comes out. What is the reason? Because it is derived from a table field in the database. The table is called Invoice. S...
asked by 07.07.2018 / 04:44
1
answer

How can I call the show methodData of the child class in my main? Bearing in mind that there are builders

public static void main(String[] args) { Persona[] persona = new Persona[5]; persona[0] = new Estudiante("Java Avanzado", "Agustin", "Ozuna", 5445247, EstadoCivil.soltero); persona[1] = new Estudiante("Visual Basic", "Gilberto", "Ram...
asked by 07.07.2018 / 02:47
1
answer

No results are produced with the LIKE command from Android

From Android Studio I make the following query against a MySQL database SELECT id_ave, Date_format(fch_ave, '%d/%m/%Y') AS 'fecha', zon_ave, cli_ave, per_ave, tip_ave, Ifnull(nom_tip_ave, 'Sin tipo')...
asked by 24.08.2018 / 16:19
1
answer

Replace Eval function

I have to replace in a JEE application (I did not create it myself) all occurrences of the eval() function. The reason is given after carrying out an analysis of the code through a solution for measuring the quality and security of the so...
asked by 12.07.2018 / 10:04
1
answer

how I delete the keys and the equal {=} that the hasmap creates when I compile the code

when using collections in java I have this problem when compiling the code create me these keys and the sign of the same and inside add the code {=} as I delete those keys and that sign of the same HashMap valor = new HashMap(); valor...
asked by 12.07.2018 / 03:08
1
answer

Issues when compiling on Android

I have this problem when I try to compile an Apk from my Android project. Could someone help me solve this: Gradle sync failed: Could not find org.jetbrains.trove4j:trove4j:20160824. Searched in the following locations:...
asked by 12.06.2018 / 00:35
1
answer

Compare two split strings of a FILE file

I am doing an exercise in which your goal is to enter a file with File, read it and check with a split if the two words that are between the symbol " | " are equal (letter by letter). I tried to do it with a "charAt" but it does not work out at...
asked by 10.06.2018 / 14:25
1
answer

Connect Java with Historian

My query is referred to connect Java with the Historian database, is it done through an ODBC? What would? or how is it done? Thank you very much already.     
asked by 28.05.2018 / 14:40
3
answers

Read a file by console with java

I have the following code that allows me to read the contents of a file (in this case txt) by Java console. I do not really understand what the function of FileInputStream, InputStreamReader and BufferedReader is. What exactly do they do? Thanks...
asked by 28.05.2018 / 21:10
2
answers

Android: SQLiteDatabase can not resolve symbol

I'm trying to make a database for a game using libgdx, but there's no way it works for me. An error appears as soon as you start with the code: you do not find anything related to SQLite. The start of the code is: public class DBAndroid extend...
asked by 05.06.2018 / 18:48