Posts by Renan Araújo • 372 points
5 posts
-
3
votes1
answer136
viewsA: C# - How do I check if 2 arrays have one or more numbers in common?
By strictly following the arrays of your question you can use the Intersect linq: int[] numeros = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int[] pares = new int[] { 02, 04, 06, 08, 10 }; int[]…
-
4
votes1
answer154
viewsA: Problem with "Exception in thread "main" java.lang.Nullpointerexception" in recursion
The error happens when performing the null.equals(null) operation when trying to get Barney’s father. You must use == operator to check the reference and not the value. public void…
javaanswered Renan Araújo 372 -
3
votes1
answer1135
viewsA: Ionic2 add element in view
Place the click event: <button ion-button full (click)="inserirCampo()">Adicionar campo</button> As you may already know, Ionic uses Angularjs, the "infinite" insertion of elements in…
-
3
votes5
answers3789
viewsA: NPM does not continue package installation
Disable the firewall of if router npm set registry https://registry.npmjs.org/ If it doesn’t work, use a mirror pro npm: npm config set registry http://skimdb.npmjs.com/registry Then use the…
-
8
votes2
answers1853
viewsQ: How to convert an html string to jQuery object?
How to convert a string HTML in a jQuery object? var objeto = '<div id="minhaDiv"><span id="meuSpan">Span</span></div>';