Example #1
0
        // expected
        private static int CountNotes(NoteMap map)
        {
            int             c  = 0;
            Iterator <Note> it = map.Iterator();

            while (it.HasNext())
            {
                it.Next();
                c++;
            }
            return(c);
        }
Example #2
0
		// expected
		private static int CountNotes(NoteMap map)
		{
			int c = 0;
			Iterator<Note> it = map.Iterator();
			while (it.HasNext())
			{
				it.Next();
				c++;
			}
			return c;
		}