Questions tagged as 'java'

1
answer

ArrayList ArrayList in a GridView

What kind of friends, I need help to create a GridView in android studio just that I have to format it vertically, well I explain myself better. my database brings me 12 elements and what I do is add it to a ArrayList<String>...
asked by 06.12.2017 / 20:35
1
answer

How to know the classes my Java project uses?

I would like to know if there is any way to see which classes are used in my java project, since I use some libraries of extensive classes and want to see which of their classes are the ones that I really use, to eliminate the others and that th...
asked by 06.12.2017 / 19:35
1
answer

Read text file delimited by pads in JAVA

I have a text file of the form: Pomace oil # 2.11 # 0.21 # 7 Sunflower oil # 5.14 # 0.1 # 3 I need to read and store its contents in different variables, that is, until the first one in one, until the second one in another, etc. I am...
asked by 06.12.2017 / 23:10
0
answers

Problem with isValid ()

I am using the Tomcat Connection Pool to access my database so that I get the connections with the following code: public DBQueryResult query(String sentencia) throws Exception { PreparedStatement stmt = null; ResultSet rs = null;...
asked by 17.12.2017 / 16:02
2
answers

fill an already created matrix

I do not print the matrix with the data of the config method public class main { static String[][] maze; //matriz para el cambas static String player = "O"; //Icono del personaje static String muro = "#"; //Icono...
asked by 04.12.2017 / 19:01
1
answer

Exceptions with a string and its values

I should be able to make use of the exceptions asking for data by console and that the string you enter should analyze me if there is any character that is not alphanumeric. As soon as I find a non-alphanumeric character that stops. Code:...
asked by 13.12.2017 / 18:51
1
answer

Process only one message at a time in Active MQ

I have a Java process that uses ActimeMQ, the queued messages are processed by Java and sent to a socket. The problem is that activeMQ processes several messages asynchronously at the same time, and sends them to the socket, causing the message...
asked by 13.12.2017 / 16:07
1
answer

Error reading Json on Android

I'm trying to read this Json that contains fixes, but it gives me the following error, I'm reading it with JSONArray, I tried to traverse it with a for but it does not let me extract the objects inside the json. Does anyone know what I ca...
asked by 05.12.2017 / 16:14
0
answers

Error executing a prepared statement

I have an error when executing a method that returns the result of a query. The error he gives me is this:    'Warning: StandardWrapperValve [jsp]: Servlet.service () for   servlet jsp threw exception java.lang.NullPointerException at   com....
asked by 03.12.2017 / 17:27
1
answer

Java problem for a user to enter a char array

I came to ask how can I insert the values of an array in that part? char cadena[] = {a,a,a,b,a,a,a,a,0, 1}; Either to scan it in the console, or to use it in jframe , but that is exactly as stated in the code. /** * @param args *...
asked by 03.12.2017 / 05:35