Questions tagged as 'java'

1
answer

Download csv file in JSP

In an onclick event, I am trying to download a csv file with FileWriter, but download to a specific path that I provide How should I get the downloaded file to be downloaded automatically and shown in the browser? The code is as follows:...
asked by 07.02.2018 / 14:57
1
answer

Will not let me convert from int to int []

Greetings, I had to make a double-dimension array but it does not let me store integer values in that array, however in a dimension yes, why does this happen? public static void main(String[] args) { Scanner sc = new Scanner(System.in);...
asked by 30.01.2018 / 17:46
1
answer

I can not enter the if with a data entered by the user [closed]

My problem is that I am asking for a number by keyboard to get the square root, but if it is less than 0 the code should not be executed, I do it but it throws me this problem: Problem Ingrese el radicando -9 La raíz de -9.0 es: NaN C...
asked by 29.01.2018 / 22:03
1
answer

How to save input data of an Activity when going to another activity and send them in an email? [duplicate]

As you see in the image, my MainActivity is simple, with EditTexts that the user must complete, in the floating buttons, the check, fulfills a function that sends the email with the loaded data, that works well. Now, the floating button...
asked by 19.02.2018 / 01:19
2
answers

I can not make a sort from an arrayList of objects - Java

I have to show a% co_of% of person object by the name of Arraylist . The information I find is with a A-Z but it is not implemented. my code is like this: Person class import java.util.GregorianCalendar; public class Persona...
asked by 19.02.2018 / 19:14
3
answers

Doubt over reference when instantiating an object

I have a question regarding the creation of objects, I will give 3 examples: List<> nuevaLista = new ArrayList<>(); ArrayList<> nuevaLista= new ArrayList<>(); List <> nuevaLista = new Linked...
asked by 03.08.2018 / 22:06
1
answer

How to calculate arrears in mysql

hi friends I am trying to calculate the arrears of the teachers ... making the query I get what I want but reviewing the data I get in some fields with null values. Here the consultation: SELECT th.codigopersonal, tp.nombres, tr.fecha, th.dia,...
asked by 20.02.2018 / 16:59
1
answer

Detect Done and Finish keyboard event on Android

Detect when the user presses on the key Done What I intend is once the user has entered the data when pressing Done a validation is done But if the user decides to stop typing and hide the keyboard by pressing the back...
asked by 20.01.2018 / 18:20
1
answer

rotate an image 90 degrees

I have a code problem with this method rotate 90Right (). Statement Write a method that is capable of rotating an image 90 degrees to the right. This is my code: /** * Rota la imagen 90 grados hacia la derecha */ public void rotar90ALaDe...
asked by 08.02.2018 / 15:19
1
answer

Memory to eclipse

I would like my eclipse to go fluid, I have a 4th generation i7, 8gb ram DDR3, SSD 256 gb, I have configured this in my eclipse.ini: --launcher.XXMaxPermSize 256M -vmargs -Xms256m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=2048m -Xverify:none...
asked by 08.02.2018 / 09:36