Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String nomeInput=tastiera.readLine();
- boolean trovato = false;
- int indiceAlunno = -1;
- for (int i=0; i<14; i++){
- String nomeDiConfronto = elencoAlunni[i];
- if (nomeDiConfronto.equalsIgnoreCase(nomeInput)){
- indiceAlunno = 1;
- trovato = true;
- break();
- }
- }
- if (trovato){
- Verifica verificaInput = new Verifica();
- /*
- * Insieme di istruzioni per popolare l'oggetto verifica
- * usando sempre il tastiera.readdLine() se è quello che vi
- * hanno insegnato ^^
- */
- /*
- * inputNumeroVerifiche è un int che ti hanno fornito all'inizio con
- * il quale hai creato dinamicamente la matrice
- */
- boolean inserito = false;
- for (int j=0; j<inputNumeroVerifiche && !inserito j++){
- Verifica oggMatrice = matriceStatistica[0][j];
- if (oggMatrice.getVoto()==-1){
- matriceStatistica[0][j] = verfificaInput;
- inserito = true;
- }
- }
- if (!inserito){
- /*
- * Gestire un errore perchè vuol dire che il numero
- * di voti comunicato all'inizio è minore di quelli
- * che mi sta fornendo in input
- */
- }
- }
- else{
- /*
- * Gestire un errore perchè vuol dire che
- * lo studente non è nel database
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement