public class AccountUtils {
public static LIST<Account> accountsByState(String state){
// :state => ๋งค๊ฐ๋ณ์๋ก ๋ฐ์ state๋ฅผ SOQL๋ก ๋ฐ๋ก ์ฌ์ฉ
LIST<Account> accList = [SELECT Id, name FROM Account WHERE BillingState = :state];
return accList;
}
}