I am trying to print some statements in java using System.out.println() statements but they aren't printing sequentially.
if(us02_birth_b4_marriage())
{
System.out.println("All user stories passed succesfully");
}
else
{
System.out.println("There are following errors: ");
for(String failString: failures)
{
System.err.println(failString);
}
//System.exit(0);
}
System.out.println("Individual");
System.out.format("%-10s%-20s%-10s%-15s%-10s%-15s%-15s%-20s%-20s\n", "ID", "Name", "Gender", "Birthday", "Age", "Alive", "Death", "Child", "Spouse");
The method is defined at the beginning of the class. Does that make any difference? Please see the output here Output Image