Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- /**
- * Sample test for Creating Excel with Detail Placeholder.
- * @author Erieze
- */
- public class TestCreateExcel {
- public TestCreateExcel() {
- Map<String, Object> map = new HashMap<String, Object>();
- ArrayList<ArrayList> students = new ArrayList<>();
- ArrayList<String> info = new ArrayList<>();
- info.add("Juan dela Cruz");
- info.add("Manila");
- students.add(info);
- info = new ArrayList<>();
- info.add("John Doe");
- info.add("America");
- students.add(info);
- map.put("students", students);
- map.put("msg", "Hello world!");
- CreateExcel create = new CreateExcel(System.getenv("HOME") + "/Desktop/template.xlsx", 0, null, "Sample 1", map);
- create.execute();
- }
- public static void main(String args[]) {
- new TestCreateExcel();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment