Posts by Davi Ribeiro • 27 points
6 posts
-
0
votes0
answers22
viewsQ: Textfield componentization with color changes
After componentization of a Textfield from the login page, the color changes (fillColor and labelStyle) do not work properly. The main class login_view calls the Component (Textfieldcomponent). //…
-
-1
votes1
answer60
viewsQ: Game of Old Doubt
I have the following method: void selecionarBloco() { while (blocoSelecionadoCorretamente == false) { System.out.print("Qual casa você irá marcar (" + jogador +"):"); int blocoSelecionado =…
javaasked Davi Ribeiro 27 -
1
votes2
answers54
viewsA: My while isn’t stopping when the condition is true.. I type "VITOR" but can’t exit the WHILE
For logical comparisons of String in if and while structures the syntax is different from primitive types (int, float, char...). You could do it quietly: while(1 != ValorDigitado) {…
-
-3
votes2
answers166
viewsQ: Doubt with "Return" in functions (java)
I have a basic question with the following code: public static float calcularMediaAlturaHomens (float TotalAlturaHomens, int NumeroHomens) { if (NumeroHomens == 0) { return "Sem média!"; } return…
javaasked Davi Ribeiro 27 -
1
votes1
answer57
viewsQ: Doubt with logical treatment of two strings
I am with a basic java problem, I have been researching on logical treatment of strings within an IF condition, but I did not find the answer to my problem: if (!"y".equals(resposta) ||…
javaasked Davi Ribeiro 27 -
-3
votes3
answers48
viewsQ: Problem with target identification
Structure of the Progama: <body> <div class = 'tabuleiro' onclick = 'clicar()'> <div id = 'a1' class = 'espaco'></div> <div id = 'a2' class = 'espaco'></div>…
javascriptasked Davi Ribeiro 27