Easy: Order of elements in Enumeration

I've been searching the docs, and maybe I overlooked it, but I didn't find a definitive answer to this one.
Calling someHashtable.keys(); returns an enumeration of the keys in the Hashtable. Does the Hashtable class make any guarantees about the order of the keys? I'm assuming that it does not, like the HashMap class.

No, the order of the keys is not guaranteed.

Similar Messages

  • Travel Expenses settlements against Service Order/WBS Element/Project Ord

    Hi Experts,
    I have one req. in Travel Expenses, i.e. need to settle travel expneses against Service Order/WBS Element/Project Order.
    Can you guide me how to do this req.
    Thanks & Regards
    Rajesh

    Hye mate,
    This is possible for sure what you need to do is to go at travel request . In travel Request there is an option of Enhanced Travel cost/ Alternative master cost center. if you click on it . you would find an option of cost assignmnet click on it
    there you would have option , like an excel sheet like fields of  the cost centre, wbs element, profit center, order number what eve is requred and save it.
    now the cot of trip would go that particulat cost center or der numbe or WBS rather then the cost center assigned at master data in ifototype 0027.
    Regards
    Waqas Anwar

  • How can i change the order of  elements in a JList ?

    Hi,
    i would like to know if it is possible to change the order of elements in a JList ? Maybe i could use drag and drop to do this ?
    Thanks for answering.

    The simplest way is probably to implement ur own listmodel and then supply the listitems in the order u want. Example:
    class MyListModel
              extends AbstractListModel
              implements ContactListListener {
    public int getSize() {
    return listitemcount;
    public Object getElementAt(int index) {
    //here u return the item for the index at the list
    //if u for example have an array of strings
    //which u wanna have listed in reversed order (reversed to
    //the order in the array, u could do
         return myarray[getSize()-index];
    }

  • How to export an album and keep images in the same order in elements 11 mac

    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos

    Thanks for the tip, Michel
    It worked like a charm…
    cheers Jos
    Op 28 okt. 2013, om 18:49 heeft MichelBParis <[email protected]> het volgende geschreven:
    Re: How to export an album and keep images in the same order in elements 11 mac
    created by MichelBParis in Photoshop Elements - View the full discussion
    JosU a écrit:
    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos
    The order in album is only kept in the organizer database, so the only way not to lose that order is to rename files.
    If you are using the 'export' function, select your album in custom order, select all photos and in the dialog, choose to rename with a common base name.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5794538#5794538
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5794538#5794538
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5794538#5794538. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Reverse the order of elements in an array

    how would i go about Reverse the order of elements in an array??

    I link to the javadocs can't be too bad. [url
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Coll
    >
    ections.html#reverse(java.util.List)]Collections.rever
    se(List)Of course I fortell the next question, but I wantan
    Array not a List? So I provide the next link:[url
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Arr
    ys.html#asList(T...)]Arrays.asList(T...)Yeah but then you have to worry about the next
    question which is more of a statement: "I can't use
    Arrays".
    Then I would as them: How would you do it in real life? Of course they could think a real world way of doing it. In that case, I'll give them an real life example.
    Assumed List
    1 2 3 4 5 6 7 8 9 10 11 12 13
    Switch the first and the last elements
    13 2 3 4 5 6 7 8 9 10 11 12 1
    Then the second and second to the last
    13 12 3 4 5 6 7 8 9 10 11 2 1
    And repeat until your half way.
    13 12 10 4 5 6 7 8 9 3 2 1
    13 12 10 9 5 6 7 8 4 3 2 1
    13 12 10 9 8 6 7 5 4 3 2 1
    13 12 10 9 8 7 6 5 4 3 2 1
    Done.

  • Will the order of elements stored in pl.sql table retains

    Hello Friends,
    I am having a record type and the for each element of record , i am having corresponding pl.sql table type .
    If i am storing the values into the records from a query and also the individual elements in the pl.sql table type will the order of data is stored as it is . ..
    example...
    in a record type the data is stored as ( name1 , age1 , salary1) , (name2, age2, salary2)
    if i store in corresponding pl sql table type name1 , name2
    age1, age2
    salary1, salary2
    can i relate the index of record type with that of pl/sql table type ..
    pls advice
    thanks/kumar

    Kumar,
    Yes, the order of elements will be the same.
    Any specific reason why you would want to create a collection for each individual attribute of the record ?
    You can as well declare another variable of the same record and initialize it.
    A few other suggestions for your code :
    1) The 2nd FOR loop can be modified to accommodate the query of the first cursor there-by eliminating one extra iteration.
    SELECT MINC.FAMID,
                         MINC.MEMBNO,
                         MEMB.AGE,
                         SALARYX,
                         SALARYBX,
                         NONFARMX,
                         NONFRMBX,
                         FARMINCX,
                         FRMINCBX,
                         CU_CODE
                    FROM MINC, MEMB, FMLY
                   WHERE MINC.FAMID = MEMB.FAMID
                     AND MINC.MEMBNO = MEMB.MEMBNO
                     AND MINC.FAMID = FMLY.FAMID
                     AND MEMB.FAMID = FMLY.FAMID
                   ORDER BY MINC.FAMID2) The collections can be alternately initialized as follows :
       v_member_rec(v_member_rec.last).FAMID := j.FAMID;
       max_earnings_tab(max_earnings_tab.last) := v_max_earnings;The tried the below example for confirmation ...
    declare
    type emp_rec is record
    (name emp.ename%TYPE,
      dept emp.edept%TYPE,
      sal  emp.esal%TYPE
    TYPE emp_rec_tab is table of emp_rec;
    ert emp_rec_tab := emp_rec_tab();
    TYPE ename_tab is table of varchar2(20);
    ent  ename_tab := ename_tab();
    TYPE edept_tab is table of number;
    edt  edept_tab := edept_tab();
    begin
    for i in (select * from emp)
    loop
         ert.extend;
         ent.extend;
         edt.extend;
         ert(ert.last).name := i.ename;
         ert(ert.last).dept := i.edept;
         ert(ert.last).sal := i.esal;
         ent(ent.last) := i.ename;
         edt(edt.last) := i.edept;
    end loop;
    for i in 1..ert.count
    loop
         dbms_output.put_line(ert(i).name||','||ent(i));
         dbms_output.put_line(ert(i).dept||','||edt(i));
         dbms_output.put_line('');
    end loop;
    end;

  • Have ordered Photoshop Elements 12 and Premiere Elements 12 (for MAC, EN version). Order went through but finally order was cancelled as Adobe Store was unable to approve. Subsequently order was cancelled. did anybody experience the same issue and how to

    Have ordered Photoshop Elements 12 and Premiere Elements 12 (for MAC, EN version). Order went through but finally order was cancelled as Adobe Store was unable to approve. Subsequently order was cancelled. did anybody experience the same issue and how to proceed.

    Hi there
    Please check with your credit card issuer to see why payment is not being approved.  When this is resolved you should be able to place a new order.
    Thanks
    Bev

  • I uploaded the upgrade to Photoshop Elements 12 today.  I got a "dispatching error" for Photoshop Elements, but was able to download Premier elements!  I did not order Premier Elements, so I'm confused (unless this was a package that I did not know about)

    I uploaded the upgrade to Photoshop Elements 12 today.  I got a "dispatching error" for Photoshop Elements, but was able to download Premier elements!  I did not order Premier Elements, so I'm confused (unless this was a package that I did not know about).  I really want the Photoshop Elements upgrade - not Premier Elements.  I do hope I did not pay for both - I only want one.  Help!

    Maryrhire910 I am sorry that you are facing difficulty downloading and installing Photoshop Elements 12.  Are you downloading the installation files from Download Photoshop Elements products | 13, 12, 11, 10?  If so what specific error are you receiving?

  • InsertMissingToData X order of elements

    Hi friends!
    Is anyone able to help me with this issue?
    I have a to assign an element to another with insertMissingToData enabled, but the order of the elemets is not right ather the assignment, I've made a small poc to make it easier to understand:
    Here is the schema (source and target variable are of this type):
      <xsd:complexType name="Test">
                    <xsd:sequence>
                        <xsd:element name="a" type="xsd:string" />                 
                        <xsd:element name="b" type="xsd:string" />                   
                        <xsd:element name="c" type="xsd:string" />
                    </xsd:sequence>
                </xsd:complexType>
      <xsd:element name="test" type="Test"/>
    In BPEL Process:
    Source variable:
    <ns1:test xmlns:ns1="http://www.example.org">
       <ns1:a>hi</ns1:a>
       <ns1:b>hi</ns1:b>
       <ns1:c>hi</ns1:c>
    </ns1:test>
    Target variable:
    <test xmlns:ns1="http://www.example.org" xmlns="http://www.example.org">
       <ns1:a>test</ns1:a>
       <ns1:c>test</ns1:c>
    </test>
    Here is the Assign activity, I need to pass "b" element to target schema:
      <assign name="Assign1">
          <copy bpelx:insertMissingToData="yes">
            <from>$inputVariable.payload/ns1:b</from>
            <to>$variableTest/ns1:b</to>
          </copy>
        </assign>
    Here is the result:
    <test xmlns:ns1="http://www.example.org" xmlns="http://www.example.org">
       <ns1:a>test</ns1:a>
       <ns1:c>test</ns1:c>
       <b>hi</b>
    </test>
    Can you see the problem? the order of the elements is wrong in the result of the assignment ("a c b" and not "a b c") it seems that insertMissingToData inserts in the final of the sequence elements and not according to XSD.
    Does anyone know a feature or workaround to fix this?
    Many thanks for considering my request!

    This looks like an undocumented feature or a bug. You should raise a SR on this. A workaround would be using a transform activity to initialize the target element(s) and then assign the data to the initialized element(s) with an assign activity. You don't need to use the insertMissingToData in this case.
    Regards,
    Melvin

  • Randomising order of elements in vectors

    hi
    i have a vector containing vectors containing Doubles (nightmare, i know!). Just wondering if there's an easy way of randomising the order or the elements in the main vector.
    thanks,
    al

    This can be improved.
    public class ARandouPermutation{
    public static void main(String[] args) throws Exception{
    java.util.Vector vec = new java.util.Vector();
    for(int i=0;i<64;i++){// 64 is an example
        vec.add(new Double(i*1.0));
    Object[] tmp0 = vec.toArray();
    int originalSize = vec.size();// obtaining the original size of the Vector
    vec.clear();  // setting to size zero
    Object[] tmp1 = new Object[originalSize];
    int[] indexarr = randPermute(originalSize);// this method is defined below
    for(int j=0;j<indexarr.length;j++){
        tmp1[j] = tmp0[indexarr[j]];
    tmp0=null;
    arr=null;
    for(int j=0;j<originalSize;j++){// this can be replaced by java.util.Arrays.asList(Object[])
      vec.add(tmp1[j]);
      System.out.println(((Double)vec.get(j)).toString());//test output
    public static int[] randPermute(int L){// length L of the array returned is passed as an argument
       if(L<0) throw new IllegalArgumentException();
       int[] arr = new int[L];
       java.util.Random rand = new java.util.Random();
       for(int j=0;j<L;j++) arr[j]=j;
       int tmp, index=0;
    Label:   while(index<L){
           tmp = rand.nextInt(L);
           for(int j=0;j<index;j++) {
                if(tmp==arr[j]) continue Label;
            arr[index]=tmp;
            index++;
       return arr;
    }

  • Order of elements in Hashtable

    My code:
    Hashtable tabCtrl = new Hashtable();
    tabCtrl.put("jTextField01", jTextField01);
    tabCtrl.put("jTextField02", jTextField02);
    tabCtrl.put("jTextField03", jTextField03);
    tabCtrl.put("jTextField04", jTextField04);
    tabCtrl.put("jTextField05", jTextField05);
    tabCtrl.put("06", jTextField05);
    tabCtrl.put("07", jTextField05);
    tabCtrl.put("08", jTextField05);
    tabCtrl.put("09", jTextField05);
    tabCtrl.put("10", jTextField05);
    tabCtrl.put("11", jTextField05);
    Enumeration ex = tabCtrl.keys();
    while (ex.hasMoreElements()) {
    String alias = (String)ex.nextElement();
    System.out.println(alias);
    Output:
    jTextField05
    jTextField04
    jTextField03
    jTextField02
    jTextField01
    11
    09
    10
    08
    07
    06
    Why not so:
    11
    09
    10
    08
    07
    06
    jTextField05
    jTextField04
    jTextField03
    jTextField02
    jTextField01

    Hi,
    I tried a TreeMap to keep ordering of my elements but it doesn't work. Why ?
    import java.util.*;
    class Mapping {
      public static void main(String[] args) {
        TreeMap map = new TreeMap();
        map.put("Type of realm used", "0");
        map.put("Name of the file used", "1");
        map.put("The database's driver", "2");
        map.put("The database's URL", "3");
        map.put("The database's user", "4");          
        System.out.println("\nmap0>"+ map +"\n");
    }Here's the output :
    map0>{Name of the file used=1, The database's URL=3, The database's driver=2, The database's user=4, Type of realm used=0}
    Anyone knows how to do ?
    I'm using JDK1.3.x, so I can't use the class LinkedHashMap from JDK1.4.
    Thank you for your help.
    Yann P.

  • Order of Elements in Collections.

    Hi,
    Can anyone let me know which collection types maintain the order of the elements in which the elements are inserted.
    Also, as what does it mean if we say that a HashMap doesn't maintain the order of the elements ?
    How does the order change after the elements are inserted in the HashMap ?
    Thanks in advance.

    I thought I would follow up with the solution.
    The method I described above does work, but in order to make it work I had to find a way to make all elements in all collections appear in the same order. In order to do that, I needed a unique key for each object in the tree, that would be the same in both the original and the modified tree.
    In my case that was easy, b/c I get the original version from Hibernate and I make my modified version by copying it (also by serializing the original into memory and then deserializing it into my new "modified" working copy tree), so they both still contain the hibernate oids.
    The extra step I needed to do before serializing and comparing was to recurse through both trees (with Introspection) and replace all sets with a TreeSet and all lists with my own implementation of a sorted list.
    Now I can compare any tree of domain objects that extend from BaseDomainObject (they all do) by simply writing
    domainObjectTree1.autoEquals(domainObjectTree2, new String[] {"terminatorProperty1", "terminatorProperty2", ...})
    Terminator properties are basically properties which I set to null before running my comparison. This allows me to "cut off" branches of the tree that I don't want to be compared.

  • Sale order - Wbs element Report

    Hi
    Is there any report for sale order wise wbs element report.
    In my sale order i will give wbs element and now i want to check "for one sale order , what are the wbs elements"

    You can check the WBS for a sales order from the table view of VBAP.
    The WBS field is PS_PSP_PNR.
    Goto SE16 and give VBAP.
    Enter your sales order number and execute. Look for your WBS elements in foeld PS_PSP_PNR for the different line items.
    You can also create a quick SAP query on this.

  • Get hierarchy of internal order / WBS element

    dear all ABAP guru,
    i have a problem to view hierarchy of internal table or WBS element,
    anyone know function module or table to view hierarchy of internal order / WBS
    many thx,

    You can also use BAPI_PROJECT_MAINTAIN for Project/WBS for internal order  following function module can help BAPI_INTERNALORDER_GETDETAIL
    BAPI_INTERNALORDER_GETLIST.
    Nabheet

  • Creation of sales order/wbs element

    Hi SAP gurus,
    While creating a sales order after entering the WBS element, I am getting an error
    Profit Ctr not consistent between Plant and Material/WBS for line item 0010
    can somebody throw light and help to solve.
    regards
    Pranav shah

    Hi ,
    check the plant for your material and in your project. both should be same.
    cheers,
    sumith

Maybe you are looking for

  • How to call ESB asynchronously from BPEL

    Hi, I have ESB that take input and returns output and fault. As while creating ESB we can not specify as sync esb or async esb. So how would i invoke ESB asynchronously from BPEL?

  • Setting up LDAP for authentication to portal:default property set named "ldap

    Hi I am trying to implement the LDAP authentication to WebLogic Portal .Iam went thru the docmentation ( http://edocs.bea.com/wlp/docs40/p13ndev/users.htm#1131824).It mentions using the default property set named "ldap" and deploying ldapprofile.jar.

  • System Prefs show Airport "OFF" but in menu bar I can turn on... pls look

    Good day. System Profiler sees the Airport card however shows no network. (This has been running with no problems for months) System Prefs, Network shows the Airport card as "OFF" even tho I can turn it "on" up on the menu bar. (it takes two times to

  • Authorization check failed

    hello experts! i created a program via smartforms but when my user try to generate a printed form an error message appear than FORM cannot be displayed. when i check Tcode: SU53 Authorization check failed. Object Class HR Human Resources Authorizatio

  • Tracks for different Service Packs

    Hi, We have been developing a Web Dynpro application with JDI Scenario 2+ on WAS 6.40 SP12.  We recently released the product into production and decided to upgrade our JDI Server to SP15 but our other servers remain at SP12. After the upgade to SP15