Questions tagged as 'java'

1
answer

The name of the dt_ultimo_acesso column was not found in this ResultSet

I'm deploying a method by passing an id parameter: @RequestMapping(method = RequestMethod.GET, value = "/entidadesUsuario/{id}", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<Collection<Usuarios>> buscarEnt...
asked by 20.10.2017 / 17:27
4
answers

Can superclass become subclass?

I have the classes Versao , which is a general version, VersaoFirmware and VersaoSoftware . In practice the user can add one or more versions to an equipment. However, at the first moment, it is not yet known what kind of vers...
asked by 26.11.2014 / 18:51
2
answers

CompareTo: Comparison method violates its general contract!

I found a lot of questions about this, and tried all the suggestions I found, however, the problem persisted. If someone can help me, here's my problem: I have a list of requests, this list is updated from pull to refresh, and reordered by...
asked by 15.12.2014 / 19:44
2
answers

How to give split in a String that contains blanks in the beginning?

For the problem in question, I need to remove all special characters and spaces and count the possible new outputs. My intention is to separate the String with the split() method. For this, based on another expression I saw, I created thi...
asked by 20.08.2018 / 22:18
3
answers

String Search

I have a dynamic size String and need to search the "#" all characters until the next blank space. I tried to use split, but without success. String texto = "oi tudo bem como vai #01?"; String[] t ; t = texto.split(texto);     
asked by 18.04.2017 / 16:36
1
answer

Write unit tests for interface or implementation?

Given the following test scenario, where I have the interface: public interface UserService { /** * Registra um usuário no sistema. * * @param user * Usuário à ser registrado. Não deve ser {@code null}...
asked by 24.04.2015 / 16:25
1
answer

Read message from USSD Android code

Using the API on Android is it possible to communicate via USSD? Is it possible otherwise? If yes how can I get the response message when entering a USSD code in Java?     
asked by 08.07.2014 / 11:43
2
answers

GMT returns -0306 instead of -0300, what's the reason?

Locale ptBR = new Locale("pt", "BR"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyy", ptBR); SimpleDateFormat iso = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.sssZ"); GregorianCalendar calendar = new GregorianCalendar(ptBR); String data...
asked by 01.12.2015 / 18:10
1
answer

How do I make the JTable values the same as the ArrayListPessoa?

I have an example program that adds objects of the type of my class Pessoa to a JTable and also to ArrayList<T> , this program has three basic functionalities which are as follows: Add Change Delete See the pr...
asked by 18.10.2016 / 23:25
1
answer

What is Event-Dispatching Thread (EDT) in GUIs?

When you are learning how to construct graphical interfaces with swing / AWT , you hear a lot about the Event-Dispatching Thread (or EDT ). Although I already have a certain coexistence with
asked by 25.02.2016 / 14:15