You need to sign in to do that
Don't have an account?
![crocodile crocodile](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Error: Compile Error: Invalid type: Account1 at line 3 column 34
// This class updates the Hello field on account records that are passed to it.
public class MyHelloWorld {
public static void addHelloWorld(Account1[] accs){
for (Account a:accs){
if (a.Hello__c != 'World') {
a.Hello__c = 'World';
}
}
}
}
public class MyHelloWorld {
public static void addHelloWorld(Account1[] accs){
for (Account a:accs){
if (a.Hello__c != 'World') {
a.Hello__c = 'World';
}
}
}
}
![Gino Basso Gino Basso](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Shouldn't Account1 be Account (unless you've created a class Account1)?