main file to test java function