Questions tagged as 'java'

1
answer

Limit an EditText from 1 to 100 and include the symbol "%"

I am making an application that takes the data entered in a EditText and does a certain calculation. The problem is that I need the field to go from 1 to 100%, but the mask I'm using is too simple for this, so it only makes the limitat...
asked by 27.07.2018 / 00:26
1
answer

Hibernate Does Not Delete

Good night guys ... I'm learning Hibernate and had a problem: I was able to insert, retrieve the DB data ... I had a setback that I corrected by adding the following command line in the RUN settings: --add-modules java.xml.bind But at th...
asked by 27.07.2018 / 03:07
1
answer

Distance between two points

Read the four values corresponding to the axes x and y of any two points in the plane p1(x1,y1) and p2(x2,y2) and calculate the distance between them, showing 4 decimal places after the comma, according to the formula...
asked by 28.06.2018 / 01:12
1
answer

How to read a json using Gson when the class contains ArrayList's in JAVA

Hello, I'm doing a college job and I'm having trouble simulating a persistence. The idea is this, I have an Observable / Singleton class that does both the data update control of some lists and does the storage and import of that data from a jso...
asked by 28.06.2018 / 01:40
1
answer

Count TAG repetitions in XML file

XML file example: <rec> <v001>001</v001> <v002>2012609272311</v002> <v003>616.890231</v003> <v005>7</v005> <v006>m</v006> <v007>^a115001^b1^c1^d20100000^e2^fOvernight^m1&...
asked by 14.07.2018 / 13:20
1
answer

Append lines to existing file

I'm trying to append lines to a report, but new lines are overwriting old ones. Class with method main: import java.io.FileNotFoundException; public class TesteInscricoes { public static void main(String[] args) throws FileNotFoundExc...
asked by 19.07.2018 / 04:08
1
answer

Error opening a new Activity on mobile - Android Studio

Good morning everyone !!! So I'm new to programming for Android, I happen to have created 3 screens: Home Categories Attitude The main one is just for it to go either in Categories or Exit. The category he will choose in which of t...
asked by 19.07.2018 / 17:43
1
answer

Access attributes of type Object

I'm having difficulty accessing values of an attribute of type Object. I have a class in which has as attributes in prox, and Object Item. Each item is an object of the Subject class.
asked by 24.06.2018 / 22:53
1
answer

Write only one field in the database

How do I save only one of the fields of this select ? Statement stmt = con.createStatement(); ResultSet RS = null; RS = stmt.executeQuery("select codplpag, descricao from pcplpag ORDER BY 1,2"); while(RS.next()){ // ListaBox.add...
asked by 08.01.2015 / 19:18
2
answers

Image Processing? Doubt about the theme and usability

Talk, how are you? I have a question if it's the same name as the Image Processing I do not know if you have a look around there are some applications that bring such a proposal. There is a translation of words, which when placing the camer...
asked by 05.09.2018 / 01:17