Question: Find and FIx the error } public class Examen{ float[] arrglo; float suma; int contNegativos; public Examen () { this.arrglo-new float [15]; this.suma=0; this.contNegativos=0; }

Find and FIx the error 


} public class Examen{ float[] arrglo; float suma; int contNegativos; public Examen() { this.arrglo-new float [15]; this.suma=0; this.contNegativos=0; } public void SetElemento (int

} public class Examen{ float[] arrglo; float suma; int contNegativos; public Examen () { this.arrglo-new float [15]; this.suma=0; this.contNegativos=0; } public void SetElemento (int pos, float valor) { if (pos 14) throw new IndexOutOfBoundsException("Invalid pos value!"); this.arrglo[pos]=valor; } public void calcular Suma () { for (int i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Answer for the following question The error is resolved and below is the corrected code This problem will be having 2 files 1 Examenjava 2 Pruebajava Following Codes 1 Examenjava public class ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!