Questions tagged as 'java'

1
answer

Multi-thread in Java Socket

I do not have experience with Java, so once again I go to the Stack to help me, I have a basic code from a server that receives a message from a client via socket and the client's code, I need to modify both, to accept connections of more custom...
asked by 06.12.2014 / 20:29
3
answers

Create mask for fields

I am developing a system and in it I need to create mask for some fields, the problem that this system was started in a somewhat old version, I can not say for sure what it is but I will be posting some code to see if You can help me. I have...
asked by 28.11.2014 / 13:40
1
answer

When converting an object to JSON, because the occurrence of several characters "\"

To perform the Bean conversion to JSON, vice versa, I am using the org.json library for JAVA. However, although one object is normally converted, others end up being loaded with \ characters when converted to JSON, and although no...
asked by 07.10.2014 / 00:43
1
answer

Why does Netbeans IDE not automatically delete Build from a web java application that was imported? [closed]

I downloaded a java web project and imported it to netbeans , when all the imported project with all its libraries were in their place, along with the file web.xml (within WEB-INF), I executed the project and it started tomcat...
asked by 29.08.2015 / 22:35
2
answers

Is it possible to switch between JDKs in Netbeans working in a Maven web project?

I'm working with java7 but now I have other Maven web projects that were built for the java8 platform, I'm using Netbeans 8.0.2. Before when I created only the java web project (not Maven), I have 2 JDK s, 7 and 8 pr...
asked by 04.09.2015 / 14:45
1
answer

Create Array of Objects in java and access objects directly

So I need to do the following I have a class with some attributes and methods, I need to generate a array of objects of this class, however I wanted to be able to access them directly, currently what I could do is throw them in a array...
asked by 15.05.2014 / 15:42
2
answers

How to add two tables in the same Arraylist

HowdoIaddtwotablesinthesameArrayList?Mycode:{publicArrayListSQLConsultagetTodos_Completo(){Stringauxtexto=edtCodigoMovimento.getText();intcodigomovimento=Integer.parseInt(auxtexto);//JOptionPane.showMessageDialog(null,"Codigo Movimento passado:...
asked by 24.04.2014 / 23:13
1
answer

Development with Codename One

I'm starting development with Codename One and finally I have a question about the support of this API with the development using sockets. Is this the only thing I can understand about TCP sockets development?     
asked by 28.04.2014 / 13:25
1
answer

Problems in hibernate update

I'm having some unforeseen issues with Hibernate in my application. I would like to know if the annotations implementations made in the java class are taken to the database or treated only inside the system, since I added...
asked by 23.02.2016 / 00:33
1
answer

How to test a DAO (using Spring and JPA) outside a container?

I'm developing an application with JPA 2, Spring and JSF 2 running in WildFly 8.0.0. I have already developed some previous applications following the same specification but never tested properly using jUnit. Now, I would like to change that and...
asked by 31.03.2014 / 20:26