I try to write a recursive solution that calculates Ackerman's function:
For the values of m and n given, the function of Ackerman is described as follows:
A(m,n) = n+1 , si m = 0
A(m,n) = A(m-1,1) , si n =...
I have a variable in String and it is the milliseconds that it takes to get from one point to another. I need to put that value in Hours: Minutes: Seconds format
I am using Java 6 and objects Date , but when I send this value to...
I have a simple application where an array of data passed to a JTable , I specify the names of the columns of the table, but only the data is displayed but not the names of the columns.
Here the code:
public class TableTest extends JFrame...
I have an arrayList, where I store 12 values [1 or 0], depending on whether the error is activated or not (0 being deactivated and 1 activated).
public void rellenar() {
cont = 0;
list = new ArrayList<String>();
list.add(0, g...
I need to save parts of a String in different variables using a single regular expression, the string is the following and it can vary, but the structure will always be the same (this line is stored in the variable strLineProcess):
Skype.exe p...
Hello everyone.
Ask this question so that you can give me a hand and guide me on my way.
My problem
I want to be able to decompress a zip in a folder or directory on the sdcard, but my code has not hit the target. Its flaw is tha...
I want to save an image in a folder within the project.
I have a jsp with a form:
<form action="ParametrosServlet" methos="POST">
Logo:
<input type="file" id="logo" name="logo" accept="image/*">...
I have a problem in which I have to read the emails that I have sent.
That part I do, but only those that I sent by javamail and do not read all those that I have sent, just read me one.
Properties p = new Properties();
p.setProperty("mail.st...
I am trying to edit an excel file with apache poi in the following way:
public void generarOrdenDePago(Cliente cliente, Periodo periodo, OutputStream outputStream) {
try {
InputStream in = new FileInputStream("ordenPagoLimpia.xls...
I really do not understand what is the purpose of each one since they perform very similar tasks.
Could someone explain to me what is the difference between an Interceptor and a Filter in Spring?