How to create border in ArrayList ?