Posts by Rafael Januário • 71 points
5 posts
-
0
votes2
answers745
viewsA: Remove characters from the middle of a String
Your logic is right, you just forgot a few details: public class Main { // ja que a função apenas printa as Strings não há necessidade de retornos static void semLetraMeio(String s) { int sLength =…
-
4
votes6
answers2492
viewsA: Beginner in Javascipt
In Ex 1, it is not an error but only a warning, because you are creating a stop variable to return a value that could be returned directly, e.g..: function perimetro(raio) { return π * raio * 2; }…
javascriptanswered Rafael Januário 71 -
0
votes1
answer76
viewsA: How to make a comparison without id?
I’m not sure I understand, but I believe you want to identify in the table which names with the drawn number. A loop in the table elements should help. function sortear() { var sorte =…
-
0
votes1
answer217
viewsA: Merge the values of an Array inside another Array
You can use the Concat (a native function as well as .toString()) for the arrays junction. suport: [].concat(id, ['informations'])…
-
0
votes1
answer55
viewsA: auto-populated form with the remaining data from one of the selected fields
You can pass {$users} to an array (if not) and then work with INDEX as if it were an ID using <option value="index">Nome do perfil</option> and then call the change with…