How can I implement the Iterable interface?

前端 未结 2 1760
野的像风
野的像风 2020-11-29 21:21

Given the following code, how can I iterate over an object of type ProfileCollection?

public class ProfileCollection implements Iterable {    
    private Ar         


        
2条回答
  •  萌比男神i
    2020-11-29 22:06

    First off:

    public class ProfileCollection implements Iterable {
    

    Second:

    return m_Profiles.get(m_ActiveProfile);
    

提交回复
热议问题