Posts by Leo • 568 points
7 posts
-
6
votes1
answer55
viewsQ: Method resolution
in the example below public static void foo(Integer i) { System.out.println("foo(Integer)"); } public static void foo(short i) { System.out.println("foo(short)"); } public static void foo(long i) {…
-
0
votes2
answers997
viewsA: How to get the reference of the selected class in Eclipse Package Explorer?
If you have the class name, you create the instance with Class.newInstance() See on documentation.…
-
0
votes2
answers158
viewsA: Software/Script/Application to manage access to multiple SSH accounts
By chance, I work on a project that does just that with 18,000 network elements :-) I don’t believe you’ll find a product that will solve this for you. What I believe is the way for you in this case…
-
3
votes2
answers169
viewsQ: How to disable Eclipse code replacement for "setters"?
When I create a class in eclipse with a type attribute public class MinhaClasse{ private String variavel; } The eclipse underlines the word "variable" in yellow and if I right-click on it, it allows…
-
12
votes2
answers294
viewsQ: Curiosity about equality of Integers
Why System.out.println(Integer.valueOf("0")==Integer.valueOf("0")); System.out.println(Integer.valueOf("1000")==Integer.valueOf("1000")); returns true false ? ps. I know that == is different from…
-
14
votes3
answers184
viewsQ: Do you have an Eclipse feature that includes "this." before any variable where this is implied?
Every time I see myself putting this. before variables that are class attributes in non-static methods. Eclipse has some option that applies this to all source files?
-
9
votes2
answers1301
viewsA: Techniques for setting requirements and writing use cases
Theory is beautiful, if it wasn’t theory. in practice you can never collect all the requirements of a system at the beginning of it, because the use of the system leads users to reflect on new uses,…