Posts by João Raphael • 65 points
6 posts
-
2
votes2
answers1181
viewsQ: Compilation error: The literal ... of type int is out of range
CadastroDePessoasFisicas c2 = new CadastroDePessoasFisicas("636.363.635"); System.out.println(c2.getNumero()); System.out.println(c2.getNumeroValidador());…
-
1
votes1
answer22
viewsQ: Doubt about require_once for multiple classes
Is there a way to require multiple classes using just one require_once? I believe that not then I was doing a function and another doubt arose, func_get_args returns an array?
-
0
votes1
answer22
viewsA: Doubt about require_once for multiple classes
I took the test here and it worked. Function: function multipleRequire(){ $archives = func_get_args(); $c = func_num_args(); for ($i = 0;$i<$c;$i++){ $name = ($archives[$i] . ".php");…
-
0
votes1
answer77
viewsQ: What am I doing wrong? Java exceptions
Main (Testeexceptions.java:14): Conta c1 = new ContaCorrente(444, 444); c1.setSaldo(5000); Conta c2 = new ContaCorrente(444, 445); c2.setSaldo(353); System.out.println(c1.getSaldo() + "\n" +…
javaasked João Raphael 65 -
0
votes1
answer85
viewsA: Prevent browser autocomplete in password
Browsers probably only complete the first password field, try adding an invisible password field (style="opacity: 0;position: absolute") and then insert into the code what you will actually use.…
-
3
votes1
answer301
viewsQ: Exception divided by zero in Java
Why this generates an Arithmeticexception / by zero: for (int i = 1; i <= 5; i++) { System.out.println(i); int a = i / 0; System.out.println(a); } And that’s not (print "Infinity")? for (int i =…