Hello to all,
public Person elementAt(int index) { if (maxSize < index) { System.out.println("Wrong Index"); System.out.println("PLease Insert A Value From 0 To "+ maxSize); } else return list[index]; }
On this code, an error appears keeps saying that this method must return a value.
If I just add another return after the existing one…then works
Any ideas?
Thank you in advanced!!