1 Replies - 232 Views - Last Post: 30 December 2012 - 03:11 AM Rate Topic: -----

#1 r.mafarjeh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 30-December 12

question in save to hash table ?

Posted 30 December 2012 - 02:20 AM

hi guys, I have project in data Structure by java ... project have a main file included many courses name,number,hours,and address for another file include student number,name,average
like that ( COMP231,Data Structure,3,C:\Users\rora\Desktop ) , I read the main file by AVL tree and print it by tree traversal ( inOrder, preOrder and postOrder ),, and it need to put the address in hash table and make some of calculation i.e average of course,average of semester for student and other . I need help in how put the address in hash table ??

Is This A Good Question/Topic? 0
  • +

Replies To: question in save to hash table ?

#2 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 856
  • Posts: 2,620
  • Joined: 29-July 11

Re: question in save to hash table ?

Posted 30 December 2012 - 03:11 AM

HashTable<String, String> addresses = new HashTable() {
    addresses.put("COMP231", "C:\Users\rora\Desktop");    
}



You are on your own with you calculations, but it's as easy as that. I have a feeling that you may want more, so if you do please be more specific.

This post has been edited by farrell2k: 30 December 2012 - 03:17 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1