Posts by Wesley • 325 points
17 posts
-
0
votes0
answers33
viewsQ: Android: Data does not persist in Mysql
Good Afternoon, With the code below I get a success message when executing the method, but the data is not in the table when validating whether it was persisted in the database (Mysql). public class…
-
0
votes1
answer20
viewsQ: Error fetching database images - PHP
As imagens não aparecem na pagina <?php $banco = new mysqli("localhost", "root", "","bd"); $sql = "SELECT arquivo FROM lojas"; $resultado = $banco->query($sql); while($linha =…
-
3
votes2
answers68
viewsQ: move_uploaded_file saved in database, but not saved image in folder! Help
<h1>Upload de Arquivos</h1> <form name="enviarImagem" action="enviar.php" method="POST" enctype="multipart/form-data"> Arquivo<br> <input…
-
1
votes1
answer1714
viewsQ: How to restrict the value of the variable to only two decimal places?
I want the r with only two decimal places. double r = Math.abs ((aux5 - ((aux1*aux2)/previsoes.length))/ (Math.sqrt(Math.abs((aux3 - ((aux1 * aux1) / previsoes.length)) * (aux4 - ((aux2 * aux2) /…
-
0
votes1
answer125
viewsQ: How to verify that all elements of a vector are between - 4 and 4?
I want to compare whether all elements of an array are between -4 and 4, if so, the algorithm will execute the method. for(int i=0; i< j; i++){ if(vet[i] > -4 && vet[i] <4)…
-
-2
votes3
answers254
viewsQ: Logic to compare four values and find the smallest
It is correct to compare 4 values in this way? Se (A < B && A < C && A < D){ Escreva A; }; Senao Se (B < A && B < C && B < D){ Escreva B; }; Senao…
-
0
votes2
answers98
viewsQ: Functions in PHP... How to use?
For a website a php file was created that contains the functions for calculating a person’s Body Mass Index (BMI) in the funcoes.php file. You want to use this function on the main page (index.php).…
-
-2
votes1
answer55
viewsQ: Are API Components in the aws package?
I have the following question. And yes, it contains "aws" instead of "awt", but I think the correct one would be "awt". Are API Components in aws package? I - Panel II - Label III - Windows IV -…
-
3
votes1
answer300
viewsQ: Can I place two conditions/increments within the same loop?
I want to basically do this for (j = parametro, int k=0; j < parametro + 3, k<3; j++, k++) { previsoes[i] += valores[j] * pesos[k] ; }
-
1
votes2
answers24
viewsQ: Error returning vector in a method
I can not return the predictions vector, Android Studio is not accepting. (incompatible Types) public double MediaMovelSimples(double[] valores) { int i; int j; double[] previsoes = new…
-
0
votes1
answer24
viewsQ: Problem using Putextra with a vector
I cannot pass the vector inside the Putextra. Someone can help me? Activity 1 double[] valores = new double[vetorEdits.length]; for (int i = 0; i < vetorEdits.length ; i++) { valores[i] =…
-
1
votes0
answers27
viewsQ: Error returning an Array in a? JAVA method
The output of the algorithm is this: [D@28d93b30. I want you to return double[] predicted responses. public double[] CalculoPrevisao(double[] valores){ double[] previsaoPeriodos = new…
-
3
votes1
answer190
viewsQ: Division always resulting in zero
The Alpha result is only returning 0. Why? package javaapplication4; public class MediaMovelSuavizaçãoExp { public double CalculoPrevisao(double[] valores){ double[] values = new…
-
2
votes2
answers397
viewsQ: Edittext Spacing Help
I can’t get a hold of Edittexts on my project. the amount of Edittexts are generated according to the amount informed by the user, that is, it was programmed in the Java Code.…
-
1
votes0
answers19
viewsQ: Problem with Android Programming. FOR
I can’t generate the amount of EditTexts based on the parameter of for? Where is the error? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
1
votes1
answer430
viewsQ: How do I place Edittext in the middle of the screen?
I used Gravity.CENTER, what centered the text in Edittext and not Edittext in Activity. package com.example.wbsoftware.testetcc; import android.content.Intent; import android.graphics.Color; import…
-
1
votes1
answer27
viewsQ: How I customize these Edittext that will be generated (backcground, Textcolor, fontsize, etc.)
Does anyone know how I customize these edittext that will be generated (backcground, Textcolor, fontsize, etc.) public class Main2Activity extends AppCompatActivity { private LinearLayout layout;…