designpatterns: State in java

Signed-off-by: Rohit Yadav <bhaisaab@baagi.org>