java words lines civil test stack programming