for (Car car : cars) {
car.drive();
}
A:
I believe you are looking for:
for (Car car : cars) {
car.drive();
}
cars is a collection. The for-each construct was introduced in Java 8. But you can use this with a collection as old as Java 7 too:
for (Car car : cars) {
car.drive();
}
cars needs to be a Collection (or some other implemention of the Iterable interface).
/*
#ifndef __LIBUNWIND_IAT_H
#define __LIBUNWIND_IAT_H
#include "globals.h"
#include <stddef.h>
#include <stdint.h>
namespace android {
namespace libunwind {
#define IAT_BITS_PER_UNIT 8
#define IAT_INDEX_MASK ((1 << IAT_BITS_PER_UNIT) - 1)
#define IAT_NONE 0xffffffff
#define IAT_HIGHLOW(i) ((i) & IAT_INDEX_MASK)
#define IAT_HIGH(i) ((i) >> IAT_BITS_PER_UNIT)
#define IAT_LOW(i) ((i) >> (IAT_BITS_PER_UNIT + IAT_BITS_PER_UNIT))
/*
- This struct is used to identify an iat record. A record is a set of
- iat pointers that can be used to identify an arbitrary address.
- The iat_key structure is pulled from a ELF object file and