Posts by Marcos Vinicius • 41 points
5 posts
-
0
votes1
answer105
viewsQ: Modify a Linkedlist using another Linkedlist
I have a List1 and a List2. List1 is very large and List2 has some elements of List1. To avoid searching the entire List1 to make a modification and thus lose performance, I need to have a List2 in…
javaasked Marcos Vinicius 41 -
1
votes1
answer533
viewsQ: Linkedlist in Java
First of all, I have a Linkedlist called Linkedeventos. LinkedList<Eventos> LinkedEventos = new LinkedList<Eventos>(); Then I have an assignment LinkedEventos = Compra;. Someone can tell…
-
0
votes2
answers397
viewsQ: Use of Enum in the case of a switch
Hello, good afternoon. I have a problem regarding the use of ENUM to replace a number in the case. In order to make my code more intuitive and not use numbers in switch cases, I intend to use an…
-
-1
votes2
answers55
viewsQ: switch not recognizing ENUM as constant
public enum enumUpdateAction { NEW(0), CHANGE(1), DELETE(2), DELETE_THRU(3), DELETE_FROM(4); public int codigo; enumUpdateAction(int codigo) { this.codigo = codigo; } public int getCodigo() { return…
javaasked Marcos Vinicius 41 -
1
votes2
answers1828
viewsQ: Learning to use ENUM in Java
Good afternoon. I’m learning to use the guys enum in Java and facing some problems. First of all, I created my own enum as follows: public enum enumUpdateAction { NEW(0), CHANGE(1), DELETE(2),…