Questions tagged as 'java'

1
answer

How to make a servlet wait to see if it has uploaded the file before redirecting

I wanted to ask you if it occurs to you how to do that after uploading a photograph to a folder on the server, from the same servlet that uploads the image it is verified that the image is fully uploaded before redirecting to another page. Ev...
asked by 28.05.2018 / 15:34
0
answers

Access the variables / data of adjustments in android referring to the utility as hotspot (share internet)

I was trying to print the internet sharing data of my Android system by a Textview but I am not finding any information on how to access them. My idea is to pass to the tex a string with the name assigned to the Internet sharing network, but...
asked by 06.11.2018 / 12:15
1
answer

Problems with a regex

I have this equation 2x ^ 2 + 7x-1 which by means of a regex removes what are the following characters: [x], [x ^ n]. to be able to solve them by means of of the general formula. This is my next code public void resolver(String msg) throws...
asked by 26.10.2018 / 21:29
2
answers

How do I enter a txt file inside a JtextArea java

I understand that it is with a cycle but I have been trying this and it does not come out, it leaves the window and the text area with the button but it does not come out what is in my file txt import javax.swing. ; import java.awt.event. ; impo...
asked by 04.11.2018 / 05:28
0
answers

MVC, problems when passing data from a View to a Controller

I have a class PaneClient , which uses CardLayout and "above" this view are other 2 views: paneAttributeSet and paneRegisterClient . The problem is when I try to call the method getFieldData() from the control...
asked by 06.11.2018 / 12:47
0
answers

AES encryption in java and AES decryption in c #

I hope the question is not redundant, and you can help me. I am creating an application that can connect to a webservice. in the application I ask for a user and a password which I must encrypt with the AES algorithm, this encrypted data arrives...
asked by 28.06.2018 / 16:49
3
answers

Java - Filter repeats in an array of strings keeping the order

I'm working with Java 8. I need, having an array of strings whose content I do not know and in which there may or may not be repetitions, obtain that content, without repetitions and without altering the original order. For example, if you ha...
asked by 26.06.2018 / 19:05
1
answer

Sort LinkedList randomly java

I have a LinkedList of 104 elements and I need to sort them randomly in java. It's a deck of cards and you have to shuffle before you start playing. I tried for(int i =0;i<104;i++){ int rand = (int) (Math.random() * 103) + 1;...
asked by 30.03.2018 / 17:39
1
answer

How to create a variable in thymeleaf and pass it to spring

Well, my problem is that I do not know how to declare a variable in thymeleaf and that it recognizes me spring with @Pathvariable. I leave the methods of the html and the controller. Thanks This is the controller: @GetMapping(value = "/...
asked by 29.03.2018 / 23:15
0
answers

send message when validating that all radiobuttons are selected Java [closed]

I do not know how to show a message by having selected all the radiobuttons of the form without the need for a button. What I want is that when all the rbuttons are selected send a message saying "won"     
asked by 03.04.2018 / 01:55