Can not find individual element in the Vector

Hi everyone,
I have employeeRecord class .
I have employee Vector.
I have created two employeeRecord and added them to my employee Vector.
I am trying to test my employee Vector by using lgName = "rez704" .
However I do not see any result.
I was expecting the for loop to go through my employee Vector and
find the login name which matches with my test variable lgName.
ANy clues?
many thanks
Vector  employeeVector = new Vector();
Enumeration e = empVector.elements();
  String nameLog = "rea700";
  String fName   = "ameri";
  String passW   = "765";
  employeeRecord  emp = new employeeRecord(nameLog, fName, passW);
  empolyeeVector.addElement(emp);
  String nameLog2 = "rez704";
  String fName2   = "Xamre";
  String passW2   = "kv281"
  employeeRecord  emp = new employeeRecord(nameLog2, fName2, passW2);
  empolyeeVector.addElement(emp);
  String lgName = "rez704";
  int i = 0;
  for(Enumeration e1 = employeeVector.elements() ; e1.hasMoreElements() ;)
            if (lgName.equals(empVector.elementAt(i)))
               System.out.println("Login Name Found");
         e1.nextElement();
      }

Hi everyone,
I have employeeRecord class .
I have employee Vector.
I have created two employeeRecord and added them to
my employee Vector.
I am trying to test my employee Vector by using
lgName = "rez704" .
However I do not see any result.
I was expecting the for loop to go through my
employee Vector and
find the login name which matches with my test
variable lgName.
ANy clues?
many thanks
Vector  employeeVector = new Vector();
Enumeration e = empVector.elements();
String nameLog = "rea700";
String fName   = "ameri";
String passW   = "765";
employeeRecord  emp = new employeeRecord(nameLog,
g, fName, passW);
empolyeeVector.addElement(emp);
String nameLog2 = "rez704";
String fName2   = "Xamre";
String passW2   = "kv281"
employeeRecord  emp = new employeeRecord(nameLog2,
2, fName2, passW2);
empolyeeVector.addElement(emp);
String lgName = "rez704";
int i = 0;
for(Enumeration e1 = employeeVector.elements() ;
; e1.hasMoreElements() ;)
if
if (lgName.equals(empVector.elementAt(i)))
System.out.println("Login Name
tln("Login Name Found");
e1.nextElement();
Hi Guys,
No, none of the solution works!!
I tired the following just for testing.
int l = 0;
if ( empVector.elementAt(l).equals(e1.nextElement()) )
<
<
<
it only prints the first employee record
Login Name Found
login Name = reza700
Last name = ameri
passWord = 765
in my original question which I had posted, I wanted to compare not the whole Vector object but
only to access loginName whithin the emplyoeeVector and comapare it
with the lgName which is used as testing.
But the example which I had uesed above and it the wrong type of example the wole emplyoee record is found in the emplyoee vector.
any help is appreciated.
thank you again

Similar Messages

  • The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)

    The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)  Do you know where I go to change the setting to allow me to "always allow" cookies?

    Hi lisaarnett111,
    If you are having issues turning on Always Allow for cookies in Safari on your iPad, you may want to check to make sure that you don't have Private Browsing enabled, as noted in the following article:
    Turn Private Browsing on or off on your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • How can I use iCloud-keychain if i can not find my country in the country code list?

    How can I use iCloud-keychain if i can not find my country in the country code list?

    Welcome to the Apple Community.
    If your country code does not appear in the list…
    Go to System Preferences > iCloud > Keychain and enter your Apple ID password (Settings > iCloud > Keychain, from a mobile device)
    Select the ‘Create Different Code’ option. (Mobile devices only)
    Select the advanced option and choose whether to create a random code or no code, selecting the later allows syncing across devices but not with Apple’s servers.

  • After updating to IOS 8, I can not delete individual messages, and the trash can is gone

    After I updated on IOS 8, I can not delete individual messages, only delete all and the trash can is gone!!!  Anyone else having this problem?

    The option is still there - hold down on said text - more - then hit the trash icon.

  • While using Windows 7, itunes64setup.exe is shown as down loaded but, i can not find it when searching the computer. Whats up?

    I can not find the setup program by searching the computer.

    It should be in your Downloads folder.
    Use this link for instructions: http://windows.microsoft.com/en-us/windows-vista/find-a-file-you-have-downloaded

  • I can not find purshed music on the cloud

    I can not find my purchased files on the cloud. I deleted my library in attempte to clean it up. a small part was not backed up. but should have been on the cloud. I look these items up in the itunes store it say "purchased" undrer them. yet they are not under purchased in the cloud.

    Move the iTunes folder from <Old User>\Music into <New User>\Music.
    tt2

  • I downloaded the latest version of iTunes and I can not find where to put the music without any synchronization

    I can not find where to put new music.
    Thank you in advance.

    When you connect your ipod up to the computer. It should show the device, usually with the name of the device, in my case 'jordan's ipod'. This should be on the row which shows 'songs', 'albums' e.t.c on the far right. There when you click on it it should go to a different screen showing a picture of your ipod along with two buttons - Update and Restore. Click update and it should take a 2 mins while your ipod is updated to the latest version of Ios.
    After updating te ipod see if there is a change in results.
    PS: make sure the device is active while syncing so keep tapping the screen.
    Sorry for any incorrect info, i have an ipod touch, but i've had experience with an ipod

  • I can not find how to use the basic Mac air keyboard. where do i find it or do a tutorial board

    I am new to the Mac worls and hardly used a PC . I used a Blackberry. How can i find how to use the macair key board. I can not get the plus sign or the brackets on my leyboard to work. The option key is called the atl key.. There is no easy guide for how to use all the Buttons on the Key board. where do i find them

    Hello Sanjit_Das:
    sorry for my english again !.
    My purpose is almost the same as this:
    https://forums.adobe.com/message/6137964#6137964#6137964
    But I do not know which  path must specify when the video is uploaded to assets:
    Sorry to ask something so absurd.
    I tried putting all
    <source src = "assets / Myvideo.mp4" />
    not working
    <source src = "C: \ Users \ Angel \ Downloads \ NEW \ pruebamusevideo \ assets/Myvideo.mp4">
    not work.
    etc
    Presenting want to work from any computer, DVD, memory stick ...
    I'm going crazy.
    I know it's something about the route.
    From muse Vimeo links to work, but when I export them to HTML not working. I guess it's a problem related to the same.
    Thank you very much again.

  • I can not find zny indication on the screen to select favorites?

    When use IE I can call up a list of URLs by selecting favorites I can not find anything sinilar on firefox?

    See this - https://support.mozilla.com/en-US/kb/how-do-i-use-bookmarks

  • HT201974 i can not find my Airport on the network interface no anywhere, how do i bring m Airport back

    help can't find my Airport anywhere? can not bring it back on or up, it doesn't appear anywhere?

    Since you have an OS X 10.6.8 Snow Leopard question......and we handle questions about the AirPort routers here...... your best resource would be the Snow Leopard support community forum.
    I suggest that you post in that location. The link is here:
    Mac OS X v10.6 Snow Leopard

  • I am looking for R.A.Salvatore's latest book, "The Companion" but can not find it.  Does the Apple bookstore NOT carry all the new releases?

    I just want to know why some books are not carried by the iBooks store?  I wanted to buy the latest R.A. Salvatore book, "The Companion" but could not find it at the store.  This is the second time I wanted to buy a book that the store did not carry.  I just wonder why?  And is there a way I can use, "Nook for IPad" to get the books I want?

    Apple can only sell in a particular country what the book publishers grant them licenses to sell - if the publisher of that book hasn't done so, then Apple can't sell it.
    Depending upon what country that are in, and therefore what apps and stores that you have access to (most ebooks have DRM which tie them to the store's own app), then you could try Amazon/Kindle, Nook, or Kobo etc and see if they have it

  • Can not find Datasource(8zicube) in the BW Sourcesysten tree?

    Hi !
    I wanted to upload the data from One Infocube( Zcube1) to another Infocube( Ex: ZCUBE2).For that I generated the Export data source in the first cube.
    Then In the update rules maintanence screen for the Second Infocbe(ZCUBE2), I gave ZCUBE1 in the infosurce field.Activation was successful.
    Where cAN i find the datasource 8zcube1  to create Infopackage?
    If It will be under Myself BW system,  How can I create it?
    Regards
    Mohan

    Hi Mohan,
    Goto RSA1 -> Infosource -> Settings -> Display settinngs and select "display all".
    Also check the display generated objects and check "show generated ODS objects".
    Another option is goto RSA1 -> Infosource -> right click on the topmost node i.e. "Infosources" -> right click and select "insert lost nodes".
    Bye
    Dinesh

  • I am using my first apple product, mac book pro.  somehow i FIGURED OUT HOW TO INCREASE THE FONT FOR SEARCHES AND WEB PAGES, BUT THE FONT IS TOO BIG AND FOR THE LIFE OF ME I CAN NOT FIND WHERE TO GET THE SCREEN BACK TO NORMAL, HELP ANYONE?

    I am new to Apple, somehow I figured out how to make font of Web pages bigger, but it is too big and I can't use sites properly.  for the life of me I can not how to get my font size reduced.  Help anyone? thank you, sbb

    Probably command-minus will do the trick.

  • Can not find edited pics on the phone with my computer

    I am running OS5 and i can not transfer the edited pic's that I edited with the phone. I can view them on the phone but when I am connected to it from the computer I can not see them on my computer to save them. Any ideas?

    Are you on a Mac? Did you try Image Capture (it's in the Apps folder on the Mac)? Maybe try rebooting your desktop or rebooting your phone and then plugging it in again.

  • Can not find "Bill me in the currency listed on the seller's invoice" option.

    When i am paying through my credit card, i see that I get charged in GBP instead of USD. My accounts default currency is USD but still I get charged with GBP. I researched and found there "was" a fix to this with the "Bill me in the currency listed on the seller's invoice" option. I could not find the option on my account, maybe because the layout of the site changed. What is the updated solution for this?

    What if you exported your contacts out of Backup Assistant and imported them into your Gmail/Google account? That will sync straight away and you don't have to deal with Backup Assistant again.
    Best decision I ever did with having an Android phone and doing this in 2009 with the DROID Eris. Which didn't support BA either.

Maybe you are looking for

  • PDF created with InDesign CS6 on Mavericks not legible in other systems

    Recently migrated to a new MAC with Mavericks, now after creating PDF files and sending them to clients, some are able to view the file correctly and others are not? Any help will be appreciated.

  • Unit of Measurement Field showing Gray while created asset master

    Dear All, When I am try to create the asset sstem is showing the Quantity Filed but the Unit of Measurement is showing in Gray. I also check the screen layout rule but still it not coming as an input field. Kindly help me out to resolve this ASAP. Re

  • New at using Premiere - Issue with timeline.

    I cannot drag anything into my time lime. It is locked for i dunno what reason, it is mentioned:timeline (no sequences). How to unlock this please?

  • Database snapshot

    Hi, I have setup a basic replication i.e. materialized replication or snapshot replication. I am using oracle 9i database servers. The following is my setup: site A - master site used for production database site B - DR site I have to replicate selec

  • Snow leopard keeps rebooting

    After the recent updrade, snow leopard (10.6.8), Snow leopars keeps rebooting ? Any suggestions as to what might be the cause 0 how to prevent?