How to call in main method twice?