我使用BeanShell的,我想使用ArrayListBeanShell的 - 使用ArrayList的
我的代碼 -
import java.util.*;
List test= new ArrayList();
test.add("Last Name");
但我得到以下異常
Caused by: org.apache.bsf.BSFException: BeanShell script error:Typed variable declaration :
Attempt to resolve method: add() on undefined variable or class name: test: at Line: 206
任何想法是什麼原因造成的問題?
謝謝
我測試了BeanShell本身的代碼,它的工作原理。爲什麼異常消息包含'org.apache.bsf.BSFException' – 2012-07-20 02:26:27
我正在使用Liquid Office其HP產品。我們使用beanshell和javascript。運行它的傷害。可能是這個原因? – Coder 2012-07-20 02:28:43