Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Enumerator Error

Ram Sateesh Talari
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks

Could't figure out what exactly is going wrong?? Can some one help??

public static void main(String[] args)
SequenceReader aSR = new SequenceReader(args[0]);
Hashtable sequences = aSR.getSequenceHash();
Enumeration SequenceIds = sequences.keys();
String MasterId = (String)SequenceIds.nextElement();
String SlaveId = (String)SequenceIds.nextElement();
RnaAlign aRnaAlign = new RnaAlign();

this main function is in RnaAlign class

No Compilation errors.

Run-time error :

Exception in thread "main" java.util.NoSuchElementException: Hashtable Enumerator
at java.util.Hashtable$Enumerator.nextElement(
at pwa.RnaAlign.main(

please Explain

Oh the stink of it! Smell my tiny ad!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!