Skip to content

Grokking Hard

code smarter, not harder

Category: java

How to iterate over a Collection in Java?

Traditional way Pros: - an iconic way - can access to both index and value at the same time Cons: - too much code Use: - when you need to know the index of the element in a loop. The Iterator way In Java, Array and Collection all implement Iterable which returns an Iterator. If … Continue reading How to iterate over a Collection in Java? →

genzerhawker java Leave a comment 2016-05-262016-05-26 2 Minutes

Categories

  • java
  • journal
  • notes
  • thoughts
  • today-i-found
  • Uncategorized
  • work

Recent Posts

  • Trying out NetworkPolicy on Kubernetes running on Docker for macOS
  • Convert checksum between Hex and Base64 using CLI
  • Download File and Verify Checksum in Bash
  • MongoDB failed to lock file on OpenShift using NFS file system
  • The Collector’s Fallacy  – Zettelkasten Method

Archives

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Blog at WordPress.com.
  • Follow Following
    • Grokking Hard
    • Already have a WordPress.com account? Log in now.
    • Grokking Hard
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar