public class VetorTurma {
public static void main(String[] args) {
int pontuacao = 0,nota,c;
String nome;
Scanner sc = new Scanner(System.in);
double gabaritoVetor[] = new double[10];
double notaVetor[] = new double[10];
System.out.println("Digite o gabarito: ");
for(c=0;c < gabaritoVetor.length;c++){
System.out.print("Gabarito | questão["+c+"]: ");
gabaritoVetor[c]=sc.nextDouble();
}
int i = 0;
for(i=0;i < notaVetor.length;i++){
System.out.print("Questão["+i+"]: ");
notaVetor[i] = sc.nextDouble();
}
if(gabaritoVetor==notaVetor){
pontuacao ++;
}
System.out.println("Pontuação: "+pontuacao);
}
}
The if counter always returns zero. What should be wrong?
NOTE: It might seem strange numbers as template the right would be a, b, c, d. But first I want to do with numbers and then as characters.