added padding examples on Java