Posts by dvlcube • 176 points
5 posts
-
1
votes2
answers91
viewsA: replace more than one char utitlizando . replace()
Use the replaceAll, it accepts regex. For example: "abcx%123".replaceAll("x%", "") The result will be "abc123".
-
0
votes1
answer54
viewsA: Doesn’t Arraylist accept Overload Polymorphism?
You cannot do Overload with generic types, type information is removed at runtime (see about type Erasure), therefore the mistake. You can use typed arrays instead of ArrayList generic, or leave the…
-
2
votes1
answer47
viewsA: How to limit the highest numerical value to be typed in C#?
There are several ways to solve this problem. In this case, as you are requesting a user input, an option would be to place a condition within a loop, preventing the loop from ending while the user…
-
3
votes1
answer59
views -
0
votes1
answer48
viewsA: Query sql with ALIAS equal to column name with unexpected return
The issue is not that the alias name is equal to the column name. The reason is that DATE_FORMAT returns a string, and string comparisons are different from date comparisons. A simple way to…