function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Set<Account> accountSet = new Set<Account>(); accountSet = new Set<Account>([SELECT Name FROM Account LIMIT 4]); System.debug(accountSet);
you can use like this,
for(Account acc : accountSet) {
system.debug(acc.name);
}
regards,
prosenjit
All Answers
this code snippet may help you ,
Thanks,
Prosenjit
Thank you so much. Its working fine.is it possible to print using for loop for set?
you can use like this,
for(Account acc : accountSet) {
system.debug(acc.name);
}
regards,
prosenjit