@sooriyaks, @rob_outterson has a great response if you’re just looking for general Java/beanshell programming.
If you have a more specific question, let us know and I have no doubts the community will help you find the right answer!
EDIT: Definitely checkout @mpakt’s answer below: Learn beanshell - #4 by mpakt