Questions tagged as 'java'

1
answer

List in object within object list is not updated

static public void agregarComida(String comida){ listaComida.add(comida); hacerCuentasComida(); } private static void hacerCuentasComida(){ Map<String, Integer> contador = new HashMap<>(); Map<String, Double>...
asked by 23.04.2017 / 00:38
1
answer

Error entering a value greater than 10 in Java

I made a program where the user types the name of a student and their 3 grades of the partial ones. The grade can not be greater than 10 and if it is then it asks you to enter another grade again. However when I enter numbers greater than...
asked by 10.02.2017 / 07:41
1
answer

Help to execute action from a new scenario in javafx

Add a new scene after the login. Now I do not have any action that executes from a button in the new scene. This is the main class. package controllers; import java.awt.geom.Rectangle2D; import java.io.IOEx...
asked by 20.02.2017 / 16:18
1
answer

Problem when including JavaMail in the Netbean

Download the JavaMail library and include it in my project first by creating it in the Netbeans and then adding it to the project, but when I am going to create the mail sending function it does not recognize some libraries. These are what Netbe...
asked by 31.03.2017 / 22:39
1
answer

How to copy a file that is in the Assets folder?

I ask this question to know how to copy the contents of a file that is in the Assets folder but my error method because I should at least return a true value, but it does not return anything nor does it come to load My code: //Este es el m...
asked by 06.02.2017 / 22:12
1
answer

non static method can not be referenced from a static context [duplicated]

I have a problem calling a method. public class propietario{ public static void modificarCoeficiente (HttpServletRequest request, HttpServletResponse response, BaseWeb base) { HttpSession session = request.getSession(); Participante...
asked by 03.04.2017 / 10:15
1
answer

Different classes for layout, layout-large, layout-xlarge

I have three layout for each activity: layout, layout-large and layout-xlarge to be able to adapt my application to all the screens, the problem is that I use a custom listview with my ListViewAdapter class and its xml, but the xml measures of m...
asked by 27.01.2017 / 01:19
1
answer

How not to copy the content that already exists in a file?

I have asked this question in order to help with this topic: I am trying to create a copying process, but not complete, that is, only update the contents of one file with the changes made in another. I explain: I have created two txt...
asked by 21.01.2017 / 23:40
1
answer

how to put more than one query (querys) in an ireport?

hi everyone I have a problem nose how to insert a query more, in my ireport when I try to enter a query in this way <queryString>............</queryString> I get error, I stress that I already have a query that works but when...
asked by 23.01.2017 / 18:26
1
answer

Do a Split to TextView when calculating age

I have my code to calculate the age taking into account the months and day of the date of birth, but I want to make a split to send only the number of the age to a TextView, I give example: In the TextView that I want to come out is thi...
asked by 23.01.2017 / 15:10