Posts by Gustavo Maloste • 146 points
3 posts
-
2
votes1
answer366
viewsA: How to catch a certain json variable
If you are sure that this link will always be returned in the array: json.response.links[0]['direct_download'] Otherwise: var downloadLinkObject = json.response.links.filter(function(e){ return…
-
7
votes2
answers881
viewsA: How to avoid code repetition between classes?
Yes, there are several ways to avoid code repetition, and you’re getting off on criticizing such repetition. A basic principle in programming is DRY (don’t repeat yourself) and preaches just that.…
-
4
votes1
answer754
viewsA: Exception in thread "AWT-Eventqueue-0" java.lang.Classcastexception: [Ljava.lang.Object; cannot be cast to [Lbr.com.jcom.modelo.Brand;
Whenever there’s a warning, something doesn’t go right in the code, in your case Piler tried to warn you but you ignored. Your problem is varargs with generics, That one varargs of the parameter is…
javaanswered Gustavo Maloste 146