+ Start a Discussion
jagjitsingh@indivar.comjagjitsingh@indivar.com 

Code Run

Hi

 

integer[] myints = new integer[]{1,2,3,4,5};

for (integer i : myints) {

system.debug(i);

}

 

I want to run these lines where i should write and test the output

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

Just click on Your Name on top right side > Then Syystem Logs > Copy/Paste your code there and execute it.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

All Answers

Ankit AroraAnkit Arora

Just click on Your Name on top right side > Then Syystem Logs > Copy/Paste your code there and execute it.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

This was selected as the best answer
jagjitsingh@indivar.comjagjitsingh@indivar.com

Hi Ankit

 

   That's O.K , but it is not displaying output . As per logic i want that it should display variable value 1,2,3,4,5.

 

Regards

Jagjit Saini

Ankit AroraAnkit Arora

When you click on execute a log is generated in below section. You need to click on that log. If that log is not generated then you need create a debug log first. Setup > Administration Setup > Monitoring > Debug Logs > Create log by your name.

 

Now execute the code again in system logs and check if the log is created or not.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page