Broo u literally made my day. I was scratching my hair thinking how would I know the size of the array, and now I understand that the solution is not using array but instead using array list. Huge thanks to u broo ❤❤
@ridlr92992 жыл бұрын
toString() is useful though because it lets you pass the object reference as a String to a method (ex: System.out.print(obj), rather than System.out.print(obj.toString())