摘要: List<Integer> list = new ArrayList<>(); int size = list.size(); int batchSize = 10; for (int i = 0; i < size; i += batchSize) { int fromIndex = i; int 阅读全文
posted @ 2024-07-12 17:12 一隅桥畔 阅读(103) 评论(0) 推荐(0)
摘要: String str = "(20/84)*100"; ScriptEngine se = new ScriptEngineManager().getEngineByName("JavaScript"); try { Object eval = se.eval(str); System.out.pr 阅读全文
posted @ 2024-07-12 17:12 一隅桥畔 阅读(39) 评论(0) 推荐(0)