Questions tagged as 'java'

1
answer

How to read TXT to a certain point and then continue from that point?

I have a class that is responsible for reading a TXT file part by piece and returning a result according to that part. This result will be used by another class. That is, I open the txt read until a certain part and make a return to another c...
asked by 20.11.2017 / 12:38
1
answer

SQLite Database is not entering values

I'm creating a simple application that involves the SQLite database and throughout the development my insert function in the table has stopped working. Through the debug I noticed that it is running to the end but the data is not being inserted....
asked by 20.11.2017 / 04:42
1
answer

NullPointerException in connection with database

Anyway, I'm getting a nullpointerException so I have no clue how to deal with it, I read the net on and apparently the problem is in uninitialized variables and stuff like that, but I'm sure everything has been initialized here. Servl...
asked by 19.11.2017 / 16:24
1
answer

How to add Firebase data to a RecycleView and show on the Android screen with Kotlin?

How to bring this list from fire to the screen of cel? val store = Shop("Fique Linda", "Temos o melhor!", R.drawable.storefiquelinda) val dataBase = FirebaseDatabase.getInstance() val myRef = dataBase.getReference("mensagens") myRef.child("...
asked by 24.10.2017 / 12:30
1
answer

How to prevent a Checkbox from receiving click events?

I want to create a list where each item has a purely informative checkbox, so that when the user accesses this item, the checkbox is marked. But after a test implementation, I noticed that when I use the checkbox, the system does not run OnIt...
asked by 23.10.2017 / 04:01
2
answers

Difference in the use of packages in Delphi / Lazarus and in Java

I would like to know the difference in the use of packages in Java projects for the use of packages in Delphi / Lazarus projects? In Java I know what it's all about separating the classes into folders, where the existence of the same with...
asked by 26.10.2017 / 16:26
1
answer

Database result in inputText

I'm developing a web application in JSP and would like to get the maximum code of the products registered in the database and put in the text field. <input type="text" name="codigo" id="codigo"/> But I can not. Here's my JSP:...
asked by 25.10.2017 / 02:21
2
answers

How to hide the keyboard the moment the user presses a button?

I would like my application to force the cellphone to close whenever the user presses a button (above and next to the edit).     
asked by 18.10.2017 / 17:48
2
answers

Java / SQL Login and Password Validation Problem

I have a validation problem with Login and Password, the code is only taken from the values of the first row of the database, but when I try to put the values of the other lines it gives error, thank you if anyone can help me. Follow the code be...
asked by 17.10.2017 / 03:16
1
answer

How to call a method that is in another java file?

Here's the first class: public class algoritmo { public static void main(String[] args){ opcoes(); } public static void opcoes(){ Scanner input = new Scanner(System.in); int num; System.out.println("Se...
asked by 16.10.2017 / 21:28