create main.java test for stack spl