Posts by Rúben Silva • 49 points
3 posts
-
1
votes1
answer338
viewsA: How to set values in Enum?
return EventoTipoMultiplicador.VALORES.getEnum(v).getDescricao(); OR Change the toString() of the enumerated to give return of the attribute descricao. @Override public String toString() { return…
-
3
votes3
answers81
viewsA: Difference in arithmetic and assignment operators practice
It’s exactly the same, you can use either, are only preferences! Some say it also touches a bit on code understanding (a = a+2 be easier to understand than a+=2) but don’t worry too much about it.…
-
0
votes2
answers261
viewsA: Multithread and Data Competition + Spring
-Operations modifying list content must be Synchronized. When a Synchronized method is placed, it only allows one thread to run at a time. Hence it is important that your code is not all…