You need to sign in to do that
Don't have an account?

salesforce basics, executing in anonymous window
public class restapijava{ public void add(){ integer x = 10; integer y =20; integer z = x+y; system.debug(z); } public static void main(string[] args){ restapijava referncer = new restapijava(); referncer.add(); } }how can i call it in the anonymous window..??
public class restapijava{
public void add(){
integer x = 10;
integer y =20;
integer z = x+y;
system.debug(z);
}
}
Go to execute anonymous window and run the below code
restapijava referncer = new restapijava();
referncer.add();
All Answers
public class restapijava{
public void add(){
integer x = 10;
integer y =20;
integer z = x+y;
system.debug(z);
}
}
Go to execute anonymous window and run the below code
restapijava referncer = new restapijava();
referncer.add();