I'm currently using a for loop to print elements in a list. It works fine and prints all the lines, however, nothing prints after the for loop itself.
For example:
for(int i=0;i<=petlist.size();i++)
{
System.out.println(petlist.get(i));
}
System.out.println("Test");
Test won't print. Is there any other way to do this? Or am I just missing something?