HashMap Example

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishnashisroy
    New Member
    • Jul 2008
    • 1

    #1

    HashMap Example

    Please give a full flazed example of HashMap
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    I don't know what a flazed example is, but Google might be of use here. Try 'hash map tutorial', for example.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by Laharl
      I don't know what a flazed example is, but Google might be of use here. Try 'hash map tutorial', for example.
      Maybe this?

      [code=java]
      public class Flazed {
      private class Fronobulax { };
      private class Fully {
      private Fully() {
      Map<Fronobulax> map= new HashMap<Fronobu lax>();
      }
      };
      public static void main(String[] args) {
      Fully fully= new Flazed().new Fully();
      }
      }
      [/code]

      kind regards,

      Jos ;-)

      Comment

      • BigDaddyLH
        Recognized Expert Top Contributor
        • Dec 2007
        • 1216

        #4
        There are plenty of examples (flazed? I don't know) in the collections tutorial:

        This collections Java tutorial describes interfaces, implementations, and algorithms in the Java Collections framework

        Comment

        Working...