You need to sign in to do that
Don't have an account?
crocodile
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
Shouldn't Account1 be Account (unless you've created a class Account1)?