The reason for my question is that I need to know how to obtain the information that has the child nodes, since I am consuming a web service and at the moment mapping the xml does not map it as I wish since I want to have the data of the xml sep...
I have a little doubt, how do I print a string inside a Text Panel with html tags?
Example:
jtextpane.setText("<html><body><font color=#16a085 size=6> Hola a todos! </font></body></html>");
@Dev...
When compiling the following program in the cmd I get the error:
unreachable statement
public class Ejercicio1{
public static void main(String[] args){
//A)
int[] f = {10,2,4,5,4,3,8,9,2,3};
System.out.prin...
I want a program that reads a serialized file that contains the data of an object called "Comarca": on the one hand it has strings (comarq) and on the other ints (poblacio). The name of the file must be passed as a parameter (go, for the main ar...
I want to add a "gif" effect to an imageButton
tiraDado.setBackgroundResource(R.drawable.dado);
AnimationDrawable frameAnimation = (AnimationDrawable) tiraDado.getBackground();
frameAnimation.start();
tiraDado is an ImageButton
T...
Good, can someone explain in detail what makes this expression in particular?
listModels.addAll(listaDao.stream().map(this::personEntityToPersonModel).collect(Collectors.toList()));
I have the method:
private PersonModel personEntityToPe...
I am creating a digital signature with itext but when I open the pdf it tells me that the file is damaged:
public void firmarPdf(String origen, String destino) {
try {
KeyStore keyStore = KeyStore.getInstance("JKS"...
If someone could explain to me and tell me how to solve it. I have two classes that I do not know why they do not communicate
class 1:
package practica003;
import java.util.Scanner;
public class PRACTICA003
{
public static void main...
This is the problem I'm doing a bicola to insert data in both sides of the queue, but when I insert data to the left it does not work for me, instead putting data on the right side if it works.
public class NodoCola {
public int dato;...