The Artima Developer Community
Sponsored Link

Java Answers Forum
foreach equivalent in java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Uma

Posts: 4
Nickname: uma2003
Registered: Apr, 2003

foreach equivalent in java Posted: May 12, 2003 2:32 AM
Reply to this message Reply
Advertisement
Hi all,

I am doing some conversion process from C# to java. I am struck with c# foreach statement.

Here I give the coding,
foreach (MapFieldInfo item in Fields)
{
if (item == null)
{
continue;
}
if (item.Field.Equals(fieldInfo))
{
exp = item.NewExpression;
break;
}
}

Here the MapFieldInfo in another class. I need the equivalent java for loop for this statement.

Pls could anyone help me.

Thanks in advance.
Uma

Topic: Converting my String Palindrome problem into a Integer Previous Topic   Next Topic Topic: I need everubody help immediately ...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use