Posts by HugoMachado • 13 points
2 posts
-
0
votes1
answer88
viewsQ: Fetch value from a non-static method of the class itself, in a jfieldtextFocusLost method
I have a method created by me that makes the return of a Boolean: public boolean ValidaNumero() { long valor; if(NIPCC.isFocusable()){ if (NIPCC.getText().length() != 0 ) { try { valor =…
-
1
votes1
answer611
viewsQ: How to access data from a Hashmap in another class
How can I access data from a Hashmap in another class? Example: Class1: Hashmap<String,String> teste = new Hashmap<>(); teste.put("TESTE", "exemplo"); Class2: How can I access Hashmap…