Questions tagged as 'java'

1
answer

Android Studio new project, Vista not complete

Create a project of 0 and when making the first view I get a space like a header that does not let me occupy my layout any idea that it is this is my manifest <?xml version="1.0" encoding="utf-8"?>                          &...
asked by 17.10.2017 / 21:05
1
answer

Multiply matrices using the thread API in JAVA

I have never worked with threads and this will be my first time. How can I multiply two matrices using the thread API in JAVA? So far I have the code to create and multiply the matrices: public class main { public static void main...
asked by 11.10.2017 / 22:12
1
answer

I can not delete all spaces in a string

Good morning, I do not know if I'm doing something wrong. I just want to eliminate the spaces at each end of a string, for that I use .trim() . The code that I have: String quedan = doc.select(".c-price .text-muted").first().text(); /...
asked by 21.05.2017 / 11:20
1
answer

Exception: java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory can not be cast to javax.xml.parsers.SAXParserFactory

When I deploy my Web Application in the WebLogic it sends the following error:    exception java.lang.ClassCastException:   weblogic.xml.jaxp.RegistrySAXParserFactory can not be cast   javax.xml.parsers.SAXParserFactory Someone could pl...
asked by 11.10.2017 / 20:30
3
answers

Help with arraylist, Modify elements?

Good I do not understand how I modify the data already assigned, I know I would have to use the set methods, but I can not do it. String array[][]= new String [list.size()][6]; for (int i = 0; i < list.size(); i++) {...
asked by 19.05.2017 / 23:37
1
answer

"New" message in my RecyclerView

I have a RecyclerView that I fill in with the data that I store in Firebase , what I try to do is that when a new item is added, a text like for example new Something like this: How can I do this? NombresAdapter...
asked by 30.05.2017 / 21:43
1
answer

When validating a tag, the string [duplicate] does not match

I have this code to write a xml but when validating the statement if does not take it into account. Does anyone know why? How to validate a xml: tag for(int i=0; i<nodeList.size(); i++){ if(nodeList.get(i).toSt...
asked by 08.06.2017 / 18:49
2
answers

How to change the underline color of a TextView in Android?

I'm adding the underline to TextView like this: TextView register = (TextView)findViewById(R.id.txt_register); SpannableString content = new SpannableString(getString(R.string.text)); content.setSpan(new UnderlineSpan(), 0, content.leng...
asked by 06.06.2018 / 01:23
1
answer

Download xml from FTP

I am trying with the following code to download several xml from an ftp. The first xml downloads it correctly but from the second it returns null . What would be the right way to do this? private Vector<InputStream> descargarConten...
asked by 19.07.2017 / 19:33
2
answers

Add spaces before uppercase

I have a String that has some text like the following:     "I am a Prayer" What I want is to be able to add spaces before capital letters so that it looks like this: "I am A Prayer"     
asked by 17.03.2017 / 01:38