Posts by Adriano Moda • 16 points
2 posts
-
0
votes2
answers1468
viewsA: Java Multiple Numbers and Primes
public class TesteCodigo { private static boolean sePrimo(int numero) { for (int j = 2; j < numero; j++) { if (numero % j == 0) return false; } return…
javaanswered Adriano Moda 16 -
0
votes1
answer42
viewsA: Doubts with JDBC
For String comparison, use the method equals() Example: public static void main(String[] args) { String palavra = "Teste"; if(palavra.equals("Teste")) { System.out.println("Deu bom aqui"); }else {…