Questions tagged as 'java'

1
answer

How could I do so when asking for the address data, I asked for the 3 attributes of that class and I did not put it as a String

package Biblioteca; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; public class Principal { public static void main(String[] args) throws Exception{ BufferedReader bf = new BufferedReader(new...
asked by 09.09.2018 / 18:52
0
answers

Delete elements of a vector consecutively (Java)

I have already tried two different methods but I have the same problem and I do not know how to delete items consecutively from my number array in BigInteger. Here is the code: BigInteger[] recov = null; BigInteger del = new BigInteger(...
asked by 10.09.2018 / 00:07
1
answer

Backtracking to get 2 sums as similar as possible

It happens that I have to deliver a code which I must solve with backtracking, but I have gone hand in hand the way of adding and differentiating the sums to compare them. The problem is that; Given a list of numbers, of size X, you have to make...
asked by 09.09.2018 / 23:04
0
answers

Java EE with Java Application Netbeans

I would like someone to take me out of a doubt. I have a web application with Java EE in Netbeans already ready, that is, it runs in the test browser and everything. I would like to know if I can use this web application in a normal...
asked by 11.09.2018 / 03:36
1
answer

Call file js containing variable java, from html5

I have a JS function embedded in my website, at the end of body <script> function permisosMenu() { var cadena = <%=permisos%> if(!cadena.includes(1) && !cadena.includes(2) && !cadena.includes(3) && !cade...
asked by 07.09.2018 / 16:51
1
answer

Android Studio Google preconditions

I'm starting in Android studio making small applications and trying new things. Until last night, Android Studio worked correctly and I did not have any problem, but today, when I turn on my computer and want to open my project it shows me the f...
asked by 07.09.2018 / 14:32
0
answers

Show image that is hosted on FTP from Java JSP MYSQL

I ask for your help, I am making a query to a table to recover where the image is. FTPClient cliente = new FTPClient();//Iniciamos el cliente del FileOutputStream stream = null; cliente.connect("ip"); cliente.login("user", "pass"); I acces...
asked by 07.09.2018 / 16:12
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 18:54
1
answer

Spring Boot with CKEditor and Ajax

My problem seems to be simple but I can not make it work as I would like. Since I want to register the value of a rich text. The form only has a rich text using CKEditor and a button to register. <!DOCTYPE html> <html lang="en" xm...
asked by 05.09.2018 / 08:45
0
answers

I have a doubt when inserting data in an array "vectors"

These vectors are in the main is a java desktop project. Vectors: double[] dato = new double[0]; double[] datoTemporal = new double[0]; String texto = ""; Insert: if (dato.length == 0) { dato = new double[1]; da...
asked by 10.09.2018 / 18:13