Questions tagged as 'java'

1
answer

Application is closing, while consuming webservice

I have a problem in my application, when consuming a web service service in Json, the application is closing. The idea of my application is to consume this web service to validate my email and password, and returning a Json with my user data...
asked by 06.11.2015 / 19:00
2
answers

How to compare only part of a String in Java [closed]

String str = new String("Bruno Oliveira"); String str2 = new String("Gustavo Oliveira"); System.out.println(str.equals(str2)); //retorna false How to compare only a certain part of a string?     
asked by 24.07.2015 / 02:05
1
answer

What are the reasons for migrating an application to a newer technology [closed]

I would like to know what you think about this? What are the benefits? Thank you.     
asked by 08.06.2017 / 00:06
1
answer

I am having doubts on how to access an object instantiated in another class [closed]

How can I print the ve.nome created in class TesteClientesPedidos , using the mostrarDadosVendedor() method of the Seller class? Class TestPatients: public class TesteClientesPedidos{ public static void cadastrarVen...
asked by 08.06.2017 / 17:45
1
answer

What are DAO, MB, TO, SERVICE, MODEL, CONVERTER and HELPER classes? [closed]

In the projects of the company where I work I see several classes with these nominations, since I'm a beginner in programming, I'm not sure what they mean. Could you get me that doubt?     
asked by 16.06.2017 / 14:30
1
answer

Error can not be resolved to a type [closed]

package livraria; public class CadastroDeLivro { public static void main(String[] args){ Livro livro = new livro (); livro.nome = "java prático"; livro.descricao = "novos recursos java";...
asked by 05.04.2017 / 08:02
1
answer

.jar file command shell - server client program [closed]

I developed a program of the client server type, in which I have two mains: one to run the server other to run multiple clients To extract the .jar file from ecplise I make export runnable Jar File. Can I run the command console when...
asked by 12.12.2016 / 22:40
1
answer

Sendredirect Error in Interceptor

I am studying Java Web and need to make an application with access restriction. Restricting access if the user is not logged in (ie the session created), if the user accesses a URL without being logged in, he should redirect to the login scree...
asked by 16.11.2016 / 23:33
1
answer

Error creating Maven project in Eclipse [closed]

The error happens as soon as I create the Maven project, I use Eclipse Oxygen.     
asked by 09.01.2018 / 15:30
1
answer

You are not deleting the data I want from DataBase

I have this code that supposedly deletes from the dataBase the date that I put in the method. But this is not erasing from the dataBase and I do not understand why. Here is the information: public void deleteRowWhitDate(String date){ S...
asked by 03.08.2017 / 18:15