Questions tagged as 'java'

2
answers

MYSQL query from JAVA

Good I am trying to put data that are not of type String in my bd made in netbeans, I need a double and a int , but when putting them I get an error, things that do not happen if I do with a String , I leave here the fr...
asked by 25.05.2018 / 23:13
2
answers

No MimeMessage content when sending a SimpleMailMessage

I am trying to send an email from my web app but I have a very strange error.    org.springframework.mail.MailSendException: Failed messages:   javax.mail.MessagingException: IOException while sending message;   nested exception is: java.io....
asked by 25.05.2018 / 19:29
1
answer

SQLite does not work

I'm trying to use sqlite, but it does not work for me. I'm just making the structure this is the code of my class conexión() : class conexion { String url = "C:\Users\Juan\Documents\NetBeansProjects\JavaApplication4\doc_sal.db";...
asked by 25.05.2018 / 15:34
1
answer

Error compiling java

I have a problem with this code, I had several syntax errors which I already solved, but I'm breaking my head because it does not compile me and I do not know why, it's a school task public class Plumones { private String color; pr...
asked by 19.04.2018 / 06:38
1
answer

Netbeans - "The CATALINA_HOME / conf / server.xml can not be read"

I am trying to build a Tomcat server in Netbeans, I have already installed the Tomcat plugin and I have correctly configured my environment variable CATALINA_HOME but I get this error:    The /conf/server.xml can not be read I do n...
asked by 20.04.2018 / 00:36
1
answer

How to check if a string has multiple values?

Good evening everyone! I have the following doubt and it is that I am trying to verify that a string contains several values, that is, the following URL https://www.mismarcadores.com/baloncesto/espana/leb-plata/resultados/ Well, I would...
asked by 22.04.2018 / 21:59
1
answer

Help in a list in Java

This is the fragment of my code: public static void Lista(String textList) { String[]stList= textList.split(","); Arrays.asList(stList); for(int i = 0; i < stList.length; i++){ System.out.println("...
asked by 02.05.2018 / 23:31
1
answer

Applying Thread Race in an interface (it does not refresh)

I quickly explain what I intend, I have two runners running threads simulating running (sum of random value), it is a thread that executes and must for each iteration of the loop in the thread make a setvalue (distance run-time) in progressba...
asked by 04.05.2018 / 22:49
1
answer

Help with JAVA parameters

I am new to java and I would like to know why I'm making an error when compiling, since I try to get my account type object to initialize with the values I show below import java.util.Scanner; public class PruebaCuenta { public static voi...
asked by 04.05.2018 / 00:25
2
answers

Fill List in Java

I'm starting to work with List in Java, my problem is this, I'm trying to fill in a list of objects, the classes are the following: Class Changes: public class Cambios { private List<Cambio> cambios; public List<Cambio> g...
asked by 12.04.2018 / 19:18