Questions tagged as 'java'

1
answer

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException 5

I have a problem in a recursion project, the error it shows is "Exception in thread" main "java.lang.ArrayIndexOutOfBoundsException" The project is a TaTeTi or TicTacToe game in which moves are entered with coordinates and then the winner is ann...
asked by 14.07.2018 / 00:09
1
answer

Problem converting an image to URI to BITMAP when uploading to Firebase

The problem I have is when uploading some images through chat, but sometimes these can be very heavy and it would not be convenient to upload such heavy images to Firebase . so choose to take the image of Uri that brings the ActivityF...
asked by 16.07.2018 / 17:26
0
answers

Shorten URLs within the same network?

I have a question maybe something silly, I'm using the MEGA SDK for Android that they have posted on github, all right, I can use it, manage the account, etc. But here the point, MEGA has a service of local web server (Streaming), which ge...
asked by 14.07.2018 / 02:03
0
answers

I can not add user using Java EE and MySQL. I can not find the error

Hello, I am trying to insert a user and I can not specify it. I do not find error in the code, however it is not achieved. JSP FORM: <form action="operador" method="post"> <input id="nombre" type="text" name="nom...
asked by 14.07.2018 / 02:00
0
answers

Circular Unit in java

I would like to ask how you could solve a circular dependency: This is the class design that I have: Player class public class Jugador{ private String id; private String name; private PowerJugador power; public Jugador(String id, Stri...
asked by 14.07.2018 / 12:24
0
answers

Convert java.util.Date to java.sql.Date

I need to do the conversion java.util.Date to java.sql.Date . I have tried the following: private long convertirDate(java.util.Date f1) { java.sql.Date fechaSalida = new java.sql.Date(f1.getTimeInMillis()); } The problem is...
asked by 15.07.2018 / 17:52
1
answer

Interaction and filling of fields with 2 select

I'm doing a fill-in form with two selections, but I want the second option to come up depending on the result of what I've selected in the first one, so it's going to be: <div class="form-group"> <label>Categoria: </label>...
asked by 17.07.2018 / 00:34
0
answers

How to solve WindowBuilder Compatibility Error in Eclipse?

I installed WindowBuilder in Eclipse to create a Graphical User Interface for a program. When I go to the Design tab of the User Interface, the following error appears:    Eclipse is running under 1.8, but this Java project has at 10 Java   c...
asked by 17.07.2018 / 02:19
1
answer

Pass a class dynamically in an Intent object

I'm doing ListView dynamically. When you click on any option, you connect to a database to bring the name of a class. My question is how to send that name dynamically to an object intent and address me to that class that sends the...
asked by 13.07.2018 / 00:38
0
answers

Problem when displaying data from a database in an HTML tag select

This is my HTML code: <select> <% ConectaDB con=new ConectaDB(); try{ con.conectar(); String sql="select unique(n_dep) from ocex_uea order by n_dep asc"; con.st=con.conexion.createStatement(); con.rt=con.st.executeQu...
asked by 12.07.2018 / 18:29