alguem que intenda de java da um help pls tenho que escrever dois valores numéricos inteiros e retomar todos os valares entre os dois numeros cuja resto da divisão por 5 seja igual a 2 ou igual a 3 soque ta dando erro e n sei o que fazer o que eu estou errando???
public static void main (String [] args) {
int value1 = input.nextInt();
int value2 = input.nextInt();
if (value1 < value2) {
for (int i = value1; i <= value2; i++) {
if (5 % i == 2 || 5 % i == 3) {
System.out.ptintn(i);
}
}
} else {
for (int i = value2; i <-value1; i++) {
if (5 % i == 2 || 5 % i ==3) {
System.out.printn(i);
}
}
}
}