View Poll Results: which method is better ??

Voters
0. You may not vote on this poll
  • HASHTABLE

    0 0%
  • HASHMAP

    0 0%
Results 1 to 3 of 3
  1. #1
    PONCHO is offline Member
    Join Date
    Jul 2016
    Posts
    1
    Rep Power
    0

    Default Hashtable or hashmap

    hi everyone.

    I would like to know which metod is better to resolve this problem ( HASHTABLE OR HASHMAP ):

    I need to implement a system for viewing and updating of student´s data .
    Initially the system must load a txt data file and display the following menu :


    1) VIEW DATA
    2) FIND STUDENT
    3) EXIT


    The first option shows the information of the students (ID, NAME)
    The second option asks for the ID of a student and shows the details of it, and lets edit that data

    The txt counts with:

    ID| NAME| CAREER| AGE| # SUBJECTS APPROVED| # SUBJECTS REPROBATED| AVERAGE


    201504123|Carla Arias|IN-TEL|20|10|2|6.8
    201402947|Paul Zambrano|IN-TLM|21|18|0|8.1
    201508364||||||
    201502342|Ivan Torres|IN-CC-ST|19|6|0|7.5
    201201723||||||

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Hashtable or hashmap

    You don't need a poll for this. One is synchronized and one isn't. One allows nulls and one doesn't. To find out more detail,
    I recommend you read the API documentation for each class.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,422
    Blog Entries
    7
    Rep Power
    28

    Default Re: Hashtable or hashmap

    Quote Originally Posted by jim829 View Post
    You don't need a poll for this.
    I agree; trhread closed. (and they're classes, not methods).

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Replies: 1
    Last Post: 07-25-2014, 01:08 PM
  2. Java hashtable & hashmap
    By whatif in forum Advanced Java
    Replies: 3
    Last Post: 01-15-2014, 12:27 AM
  3. Problem using HashTable and HashMap duplicate insertions
    By omerkhalid34 in forum Advanced Java
    Replies: 1
    Last Post: 01-14-2012, 02:41 PM
  4. How does HashMap differ from HashTable?
    By guest_user in forum New To Java
    Replies: 1
    Last Post: 08-12-2011, 04:05 PM
  5. HashTable vs HashMap
    By bugger in forum New To Java
    Replies: 7
    Last Post: 01-06-2011, 03:15 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •