import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.stream.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
var datos = Arrays.asList(
"1",
"PAG-MC EF",
"S/L",
"N",
"DOLAR",
"",
"2022-08-30",
"02",
"N", //HORARIO
"004",
"Tran: 0000063",
"15:30:20",
"5481463011194013", //CUENTA
"BARAHONA VASCO YURY PAVEL", //CLIENTE
"N",
"A", //CEDULA
".", //MODENA CUENTA
"0", //VALOR TRANSFERIDO
"QUITO",
"PAGO TC MASTERCARD", //PRODUCTO
"33.11", //EFECTIVO
"0.0",
"0.0", //CHEQUE LOCAL
"0.0",
"");
IntStream.range(0, datos.size())
.mapToObj(index -> index + ":" + datos.get(index))
.forEach(System.out::println);
var dato = datos.stream()
.map(s -> "\"" + s + "\"")
.collect(Collectors.joining(" "));
System.out.println(dato);
var encode = Base64.getUrlEncoder().withoutPadding().encodeToString(dato.getBytes());
System.out.println(encode);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: