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 .
}
}