Search code examples
salesforceapex-codeapex

How to Display Wrapper Class Variable in Apex Controller


Find the link and provide me the solution for that.

I could paste the code here directly,so fine the link

click here to view the code


Solution

  • for(Restaurantwrapper.cls_nearby_restaurants nearby_restaurant : Restaurantwrapper.nearby_restaurants){
        String name = nearby_restaurant.restaurant.name;
    }