Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

NEED HELP ASAP not sure where i went wrong wiht my code it wont seem to run beca

ID: 3886026 • Letter: N

Question

NEED HELP ASAP not sure where i went wrong wiht my code it wont seem to run because of some brackets at the end but i'm not sure where the brackets are suppose to go if someone can help me correct this and what i have done worng wiht my code i'll appreciate ASAP it has to be in java

ublic class AnimalsTester public static void main(Stringl] args) a[0] a[1] a[2] a[3] a[4] new new new new new Animals(181, "Dog", 3000); Animals(102, "Tortoise", 2000); Animals(103, "Buffalo", 7000); Animals(184, "cow", 5000); Animals(105, "Bear", 4000); = = = = for(int i = e: i a.length:1++)

Explanation / Answer

Here is code:

public class AnimalsTester {

public static void main(String[] args) {
Animals[] a = new Animals[5];
a[1] = new Animals(181, Dog, 3000);
a[2] = new Animals(102, Tortoise, 2000);
a[3] = new Animals(103, Buffalo, 7000);
a[4] = new Animals(184, cow, 5000);
a[5] = new Animals(105, Bear, 4000);
for (int i = 0; i < a.length; i++) { // reached end of file while parsing

if (condition) // I think there will be condition
{
System.out.println("Animal is present at:" + (i + 1));
System.out.println(a[i])
break;
}
}
}
}