class A 
if(userAuthenticated)
  ArrayList accounts = getAccountForUser(customerId);
UserInfo userinfo = new UserInfo();
userinfo.getUserInfo(accounts);
}
==============
class UserInfo 
{
public ArrayList<String> getUserInfo(ArrayList list) {
ArrayList useraccounts = list;
return useraccounts;
}
}
===============
クラスCの中に文字列があり、チェックする必要があります。その文字列値が存在する場合は、何か他のことをします
問題は、これが WebApplication であるため、 Application でインスタンス varaibe を使用できないことです。
class C 
{
public String makeDBCALL(String account)
{
Here i need to get that ArrayList  of UserInfo  and check if taht  list.contains(account)) 
could anybody please tell me how can do this .
}
}