I use beanshell and I want to use arraylist
My code is
import java.util.*; List test= new ArrayList(); test.add("Last Name");
But I get the following exception
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
Any idea what is causing the problem?
thanks
source share