Java :: Demo for validate data