Posts by 123 • 106 points
4 posts
-
3
votes1
answer18
viewsA: Problems with if no managedbean
Do not compare strings to == in Java, this will compare the address of the objects containing your words, rather than comparing the words themselves. To compare strings use the equals method, this…
-
1
votes1
answer210
viewsA: Switch from second to third Activity [Android Studio]
In the log it says: AppCompatTextView cannot be cast to EditText That is, the error is on the next screen. You are trying to store an Appcompattextview object in an Edittext type variable (probably…
-
1
votes1
answer85
viewsA: Shopping Cart (checkout) keeping only the last value
if (amount_chair != 0) { var total = price_full * amount_chair; } if (amount_grandstand != 0) { var total = price_full * amount_grandstand; } I believe the problem is here. If amount_grandstand is…
-
1
votes1
answer80
viewsA: Sort Multidimensional Array java script
var meuArray = [['4togm90gjwegn', 50], ['ef84itjdpodsdf4jg', 25], ['32r8uoijgtsdfsht', 15135]]; //Para ordenar em ordem crescente meuArray.sort((a, b) => a[1] - b[1]); //Para ordenar em ordem…
javascriptanswered 123 106