Questions tagged as 'java'

1
answer

Access an internal Java class

Why is it not a problem to access an internal Java class in two stages: Clause.Litteral l = (Clause.Litteral)copieResolvante.listeLitteraux.get(0); if(l.predicat.equals("write")){ Clause.Litteral.Symbole s = (Clause.Litter...
asked by 25.04.2016 / 20:42
1
answer

Problems with matches

I want to do a match check, which checks that the string contains 5 or more characters that are neither the ñ, nor the z, nor the x. I have tried it in the following way: b=s.matches("\w{5,}[A-z[^ñzx]][A-z[^ñzx]][A-z[^ñzx]][A-z[^ñzx]][A-z[^ñzx...
asked by 22.12.2018 / 20:06
2
answers

Error comparing the name of two contacts in an arraylist agenda_telefono

I am programming a phone book using arrayList. I want to compare the names and print that the contact can not be added to the calendar if they are repeated. I miss this error: Exception in thread "main" java.lang.IndexOutOfBoundsException: Ind...
asked by 17.12.2018 / 17:16
1
answer

Failed to access the WSDL. It failed with: java.security.cert.CertificateException: No subject alternative names present

I have started working with Web Services and trying to consume one for telephony provided by Avaya from a web application that I am creating in Netbeans. The code in the application is simply for a login: HTML code <%@page contentType=...
asked by 18.12.2018 / 19:44
1
answer

Use return in java

I have the following method: public Object loginUser () { String soapEndpointUrl = "http://gamificacioc.com:80/ServerGIOC/webservices"; String soapAction = "http://gamificacioc.com:80/ServerGIOC/comprovarLogin"; //Recollim les dad...
asked by 21.11.2018 / 22:17
1
answer

Because getChildNodes gives me an unexpected result

When I get the children of the root node (books) I should get the result 3 (book, title and author) and I get 9 when applying getchildnotes (); books.xml <?xml version="1.0" encoding="UTF-8"?> <Libros> <Libro publicado_en=...
asked by 23.11.2018 / 15:49
1
answer

Keep distance between objects in Java [closed]

I have 3 balls within a JPanel that move at random speeds. Until then everything is fine. But I want the balls always to be at an equal distance, for example that the vertical distance between each one is 50 pixels. package jFrameLluvia...
asked by 09.03.2016 / 23:13
1
answer

Get ViewGroup on onCreate from a Fragment

The problem is this: I need to get the ViewGroup to inflate and thus be able to initialize my RecyclerView because when I change Tab (Tab) and return to it I have all the Fragment blank. I have been reading and testing and they say that I must d...
asked by 21.02.2016 / 02:40
1
answer

Overlap two images using Glide on Android

I reissue the question so that it is understood better than what I intend to carry out I'm doing a detail view with the% co_of% expandable The google style guide specifies that yes the image is very clear, better to put a dark gradient o...
asked by 03.02.2016 / 18:46
2
answers

Obtain project directory from any PC

I want to open a txt file contained in my project from any PC. I have a problem when opening a txt file that is in the resources folder of my project. The point is that I can open the file if I specify the path of it from my hard drive, but i...
asked by 03.11.2018 / 23:52