Posts by João Vitor • 145 points
4 posts
-
1
votes1
answer87
viewsA: Program with Recursion in C
This answer is not intended to solve the problems, but rather to show a way to solution. The idea would be to create four independent functions. Each one returns whether it won or not. First…
-
11
votes3
answers2425
viewsQ: Why in Java is the size of an array an attribute and a String and a method?
In Java, the size of a array of any object can be obtained with length, which would be an attribute. But in the case of String is length(), a method. However, if you have a array of String, uses…
-
1
votes1
answer911
viewsQ: Create java icon button?
I’m having trouble creating an icon button in java, I’ve looked at several tutorials, but I can’t make it work. Note: I am using eclipse, Windows 10. The folder that is the image is src where the…
-
0
votes1
answer366
viewsQ: How to differentiate buttons within the same event?
I would like to know a method to differentiate a button that generated event, in my method that will treat the events. In the example below I add the same class that handles the events to 2 buttons,…