Posts by Thiago Viana • 86 points
4 posts
-
1
votes1
answer60
viewsA: Game of Old Doubt
In your question, you are omitted where you created the variable blocoSelecionadoCorretamente, I believe it’s out of function selecionarBloco() If this is the case, since…
javaanswered Thiago Viana 86 -
1
votes1
answer66
viewsA: Convert JSON from graphql API to array
The.log() console may not be very specific if you don’t have an array exactly, basically, do: console.log(content[i]["squads"][0]["cards"]); //Index 0 como exemplo, você pode colocar um 2° for And…
-
1
votes1
answer105
viewsA: Clear memory unused object
Try calling your set’s clear() method, it would look something like : public void saveAllData(Set<String> logSet, RegexEnum regexEnum) { Pattern dataPattern =…
-
1
votes1
answer87
viewsA: Handle invalid characters inside a switch
You can force the user to enter a valid number from 1 to 7 by changing your : opcao = scan.nextInt(); For this algorithm : int opcao = 0; while (opcao == 0){ try{ Scanner scan = new…
javaanswered Thiago Viana 86