{"id":467,"date":"2015-09-14T18:29:50","date_gmt":"2015-09-14T18:29:50","guid":{"rendered":"http:\/\/installingcats.com\/?p=467"},"modified":"2015-09-14T18:29:50","modified_gmt":"2015-09-14T18:29:50","slug":"android-studio-generate-foreach-loop","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2015\/09\/14\/android-studio-generate-foreach-loop\/","title":{"rendered":"Android Studio generate foreach loop"},"content":{"rendered":"
Begin typing foreach<\/em> until autocomplete pops up. \u00a0Select “Create a for each loop”.<\/p>\n You’ll then get an empty for each loop that you can start filling in, first supplying the Type of each object, a variable name of your choice for that object, then hit Enter to move to the name of the variable (a Collection), then hit Enter, then supply the statements you wish to run against each item within the collection.<\/p>\n