Results 1 to 2 of 2
  1. #1
    loopsnhoops is offline Member
    Join Date
    Feb 2011
    Posts
    83
    Rep Power
    0

    Default StringArray Enumeration

    I need to fill a StringArray with a value every time it looks at the next element help please.

    I am going to assume the hashtable values are irrelevant to my goal.

    Java Code:
    Enumeration k = fileObj.keys();
    			    while (k.hasMoreElements()) {
    			     		      
    			    //  out.write(house + ";" + value+"/n");
    			      
    			      String key = (String) k.nextElement();
    			      String output = key + ";" + fileObj.get(key)+"\n";
    			      //StringArray Here Please
    			      out.write(output);
    			      out.close();
    			      
    			    }

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    10,095
    Rep Power
    17

    Default

    Check out the methods available in java.util.Arrays

    db

Similar Threads

  1. nxn 0-1 array enumeration
    By hollygrove in forum Advanced Java
    Replies: 3
    Last Post: 10-16-2009, 09:33 AM
  2. Enumeration
    By kishan in forum Advanced Java
    Replies: 3
    Last Post: 06-19-2009, 12:27 AM
  3. Using Enumeration to iterate through Hashtable
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-15-2008, 08:44 AM
  4. Replies: 0
    Last Post: 01-04-2008, 09:34 AM
  5. Declaring Enumeration
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-04-2007, 05:59 PM

Posting Permissions

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