How to write a function like "foreach" in C# with Java?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lisc
    New Member
    • Apr 2008
    • 6

    How to write a function like "foreach" in C# with Java?

    Hi, everybody!
    I have some question to ask you. When I was writting code with Java, suddenly I have this mind. There is a keyword "foreach" in C#, Java hasn't this keyword. How to release it in Java?
    I can't write it out. Any body who can help me?
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by lisc
    Hi, everybody!
    I have some question to ask you. When I was writting code with Java, suddenly I have this mind. There is a keyword "foreach" in C#, Java hasn't this keyword. How to release it in Java?
    I can't write it out. Any body who can help me?
    if for:each in C# is like a loop function,

    try to look at this.

    regards,
    sukatoa

    Comment

    • lisc
      New Member
      • Apr 2008
      • 6

      #3
      Originally posted by sukatoa
      if for:each in C# is like a loop function,

      try to look at this.

      regards,
      sukatoa
      Thanks for your reply.

      Yours, lisc

      Comment

      Working...