Help for thst I can not get the correct output

The program is :1,insert some strings.
2.search some strings,if same to the strings inserted,output true.
Other wise,ouput false
But in my output,all are false.I have checked my code many times,but I can not figure it out.
So ask for help.Thanks.
My output:
Inserting My
Inserting name
Inserting is
Inserting John
Inserting Latham
Inserting and
Inserting my
Inserting hobbies
Inserting include
Inserting films
Inserting music
Inserting electronics
Inserting and
Inserting computing
Searching for latham:false
Searching for films:false
Searching for swimming:false
Searching for fishing:false
Searching for computing:false
Searching for climbing:false
Searching for paragliding:false
Searching for Latham:false
Correct output:
Inserting My
Inserting name
Inserting is
Inserting John
Inserting Latham
Inserting and
Inserting my
Inserting hobbies
Inserting include
Inserting films
Inserting music
Inserting electronics
Inserting and
Inserting computing
Searching for latham:false
Searching for films:true
Searching for swimming:false
Searching for fishing:false
Searching for computing:false
Searching for climbing:true
Searching for paragliding:false
Searching for Latham:true

And the other problem is that you didn't fix the problem from your last thread correctly.
This is wrong.
OBT.find( findString);
System.out.println("Searching for " + findString[i] +":" + OBT.isEmpty());Just do this already.System.out.println("Searching for " + findString[i] +":" + OBT.find( findString[i]));                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • JRockit_160_05_R27.6.2-20 can not get the correct os name for windows 2008

    JRockit_160_05_R27.6.2-20 can not get the correct os name for Windows Server 2008 SP1 using System.getProperty("os.name").
    System.getProperty("os.name") will return Windows Vista instead of Windows Server 2008 when running on Windows Server 2008 SP1. Is it a bug of this jdk?
    I tested it on Sun JDK 1.6. It returns the correct name Windows Server 2008.
    Any suggestion will be welcomed. Thanks in advanced!
    Edited by: user4516182 on May 13, 2010 12:59 AM

    Staffan, thanks for your update.
    Do we have a workaround for it or fix it in new release?

  • I can not get the correct anser

    Hi, Please help me.  As the following sch I can not get the correct sqrt value.  if changing resistor of R1 I always get 12v direct flow output.
    Attachments:
    op_divider.zip ‏121 KB

    Thanks for your answers.  I want the sch to do the operation of square root.
     1. in my sch the inverting input is DC -5v, I want to get the square root of 5?
     2. In my feedback path I use a multiplier, I Originally thought it is a negative feedback?
     3. it Already have ground in the sch, I do not understand that you say "did not ground the scope"?
    Thanks again, Could you give me the further pointing. if possible Could you give me a correct sch.
    (in fact, I get the sch from a rough sch in a textbook(the rough sch not for multisim). I just give the values for the all components)

  • Help, please! i can not get the sound to work on my pc

    i can not get the sound to work on my pc

    Try opening the device manager and remove your sound hardware and then rediscover.  This works often.  Let me know how it goes.
    iGirlTech

  • HT201471 i HAVE A LATE 2011 IPAD ◦A1395 on the iPad 2 (Wi-Fi) .I GOT  APPLE TV FOR CHRISTMAS BUT CAN NOT GET THE ICON ON MY IPAD IS THERE A WAY OF DOING THIS

    I got the new appl3 tv for christmas for itunes and mirroring etc .I have a problem trying to mirror from my Ipad as i cannot find the airplay icon .is there a easy soluation to this problem my Ipad model is
    A1395 MODEL  year 2011

    http://support.apple.com/kb/ht5209
    http://support.apple.com/kb/ht4437
    http://support.apple.com/kb/TS4215
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-Airplay-Icon-Missing. htm
    http://appletv2.com/airplay-icon-missing-ios-7/
     Cheers, Tom

  • I have an ut ipad 2 with no configuration for the i cloud. I have follow the instructions of synch the ipad with itunes v 10.6 in my pc, but i can not get the display of the cloud icon in the general settings of the ipad. appreciate any help

    I have an ut ipad 2 with no configuration for the i cloud. I have follow the instructions of synch the ipad with itunes v 10.6 in my pc, but i can not get the display of the cloud icon in the general settings of the ipad. appreciate any help

    I'm asking because ios5 introduced iCloud. You have to have updated to ios5 to see it.

  • I have IMac 10.7.5 Lion I use I forgot the password and I did a few fixes from the we sites, which did not work and now I can not get the computer to reboot the gray screen comes on and if a shift c I get a load bar and it goes half way and help

    I have IMac 10.7.5 Lion I use I forgot the password and I did a few fixes from web sites, which did not work and now I can not get the computer to reboot the gray screen comes on with the apple and if a shift+c, I get a load bar and it goes half way and stops, I can get into the black screen area with the hard drive info
    I did the following:   mount -uw /    rm/var/db/.AppleSetupDone    shutdown/uses/us  reboot Ok I know I should not have, but now I need help to reboot and hopefully not lose everything on the desk top, Linda Markle

    You did the wrong things. In the future it's a good idea to remember not to do something when you don't know what you are doing and what happens when you do it.
    Forgot Your Account Password
    For Lion, Mountain Lion, or Mavericks
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see:
           Reset a Mac OS X 10.7 Lion Password
           OS X Mountain Lion- Reset a login password,
           OS X Mavericks- Solve password problems,
           OS X Lion- Apple ID can be used to reset your user account password.

  • Hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the

    hi help unlock the phone happened after we installed a new programa we can not get the activation password and ID, I know and still does not stop the phone bought in Israel and what documents should be sent to confirm that my phone Please read through the help

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • My aperture library will not open after restoring my whole computer after a kernal panic.  I can not get the Aperture troubleshooting menu to open...any help?

    My aperture library will not open after restoring my whole computer after a kernal panic.  I can not get the Aperture troubleshooting menu to open...any help?

    Leonie,
    Fisrt let me thank you for your reply and assistance!  So here is the problem with so more detail...I was not sure I was going to get any replies ; )
    I restored from a time machine back up.
    History of Failure:
    I was trying to launch Aperture when the kernal panic occured.  My computer had been closed, and asleep and the battery was dead.  I plugged in charger and it was restoring/waking up after being asleep/shutting down from dead battery.  I launched Aperture from the dock and as soon as it opened the kernal panic occured.  After that the computer would not turn on.  It would try to boot then it would shut off.  I even tried to safe boot to no avail.  I went to the Apple store and they told me that the only thing I could do was restore whole computer from back up.  So thats what I did.
    Since then my previous aperture library: "2011" will not open.  I have created a new aperture library "2012", and it runs fine.  I have added new photos for about the past month...no problems. 
    When I launch aperture with 2012 library then try to switch libraries, I get the following prompt: "The selected library is from an older version of Aperture and requires a relaunch to switch."  I choose "Relaunch" and I get the following warning prompt: "There was an error opening the database for the library “~/Pictures/Aperture Library 20111.aplibrary”."  The only option is "Quit"
    Both libraries are version 3.2.3
    Computer stats: 3.06 GHz Core 2 Duo, 8 GB 1067 MHz DDR3 RAM, OS X 10.6.8
    I have tried to launch aperture troubleshooting by holding option+command from both the aperture icon and from the library file, neither will launch the troubleshooting feature.
    I am ok with computers, but not a whiz (mechanical engineer)...to me it seems as though there is a corrupt path or file or some sort of "check" that is failing, becuase the failure occurs so fast after trying to launch aperture. Maybe that doesn't make any sense but just a thought.
    I hope that you may be able to provide some insight.  Thank you again for you time and I hope that you have a nice day!
    Mike

  • I can not get the download for indesign to work

    I can not get the download for indesign to work.

    Perhaps this Adobe Help document may help you:
    http://helpx.adobe.com/creative-suite/kb/download-install-trials.html?t2

  • After update to OS4.2.1 I can not get the ringer to work for incoming calls

    after update to OS4.2.1 I can not get the ringer to work for incoming calls. If I set Vibrate on, that's the only notification I get. Tried everything including blowing away ALL my apps and restoring phone to new. Lost all my apps but the ringer still won't ring

    God Bless u! LOL I have an otterbox case on my phone and had no clue that the mute button was there....Thank you so much!! The volume on my movies & everything else worked...even when I would go into "settings" and adjust the volume of the ringtone. I knew it was something simple...Thanks again..

  • I have purchased the VGA Connectors for both a iMac and Macbook Pro so that i can connect my promethean board projector to the computer and I can not get the image on the screen.  Does anyone have any suggestions?

    I have purchased the VGA Connectors for both a iMac and Macbook Pro so that i can connect my promethean board projector to the computer and I can not get the image on the screen.  Does anyone have any suggestions?

    Irelandbound wrote:
    thank you, I have the adaptors so glad that would work.  I just heard adaptors burn out often.  So Just thought for my main iMac computer, a plug would be best.  I will get one once I move.
    Any other suggestions or things I should know about apple products in Ireland.  I know there are no Apple stores there.
    An adaptor doesn't burn out. It merely serves as a means to connect the power prongs on your device to the power supply.
    I believe you are thinking of a transformer, which you do not need. A transformer converts one voltage to another.
    You don't need to do that as the power supply of modern electronics can take almost any worldwide voltage.
    Look at the label on the device. It should indicate the input power acceptable of 100-240 VAC, 50-60 Hz.
    Additionally, I found the adapters cheaper in the UK than I found them in the US. They were available in most supermarket chains. I wasn't in Ireland, so I can't say one way or the other.
    If you have something that doesn't have that input power spec, it would require a transformer.
    On other items like electric clocks or things with motors, you can connect them up to a transformer and the voltage will be correct, but the frequency may not. For clocks, that will cause them to not keep time well. For motors, they will burn out.

  • Can not get the Cisco TSP to show UP - 2003 64bit

    Can not get the Cisco TSP to show up on the list of Providers in Phone and Modem Options- Advance tab. Installed ver. 4.1, it seems to install correctly, with no errors but when I restart the server, there is no Cisco TSP001.tsp in the providers list. It works perfectly on my Windows 2003 servers, but will not work on this new Windows 2003 64 bit server. Any tricks to getting this to load?
    Thanks
    Keith

    Hi
    There is no 64-bit TSP yet. Whilst 32-bit apps will work OK for the most part on 64-bit via the WoW function, drivers tend to not be so flexible, and that's what TSP is...
    You'll have to bother your Cisco accounts folks to get this prioritised, it is upsetting a lot of people...
    Aaron
    Please rate helpful posts...

  • I can not get the flash player plug in to work with Internet Explorer

    I can not get the flash player plug in to work with Internet Explorer

    Zoltan71 wrote:
    I just bought this computer. My Internet Explorer is version 11.0.1
    I have the box checked to Install new version automatically, but it has not done any upgrading.
    I can't get the computer to update anything as far as I can see.
    The flash plug in does work with the Crome browser but it will not work with Internet explorer.
    I looked in the manage add-ons and it says enabled.
    I also went into the safety tab and deselected
    Active X filtering.
    Restarted and still does not work.
    I need help.....
    Chrome uses a different and separate plug-in.
    There are things about IE you need to know, especially 11. Specifically:
    "User-Agent Strings"
    That doesn't mean a lot, I'm sure, but it's the root of your problems, and Flash Player has nothing to do with it.
    Microsoft "rewrote" the User-Agent Strings for the abomination they call their latest and greatest browser. User-Agent Strings are what websites use to identify the browser you're using and provide the proper content for it's browser engine, like ActiveX stuff, and Flash or HTML5 video. Thanks to the geniuses in Redmond, WA, the User-Agent Strings for IE11 (which has a Trident engine), ID it as either "Gecko" (Firefox) or "Webkit" (Chrome). Problem is: when the site the directs to the content for one of these two engines, the Trident engine in IE can't intepret it and the site then sees IE as an "unidentified" browser.
    The problem with an unidentified browser is that the plug-ins in that browser aren't recognized either, so even though you're up to date, it says you need the latest Flash Player when you use IE11. YouTube... has converted to HTML5 video so if it doesn't detect Flash Player, it can display HTML5 (MP4) video which requires no plug-in to play. Facebook can't do that, because HTML5 doesn't apply to games... only video.
    Microsoft has no plans to "fix" the mess they've created because they think it's a great idea to block you out of the websites you visit.
    They recommend using "Compatibility View" and pretending that you're using an older verison of IE... Problem with that is that it's seen limited success, and you have to enable it for EVERY page that has problems... individually.
    I'm not big on "pretending" so I recommend actually using another browser.
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.

  • HT1386 I have an app called ipieta which was originally downloaded onto an ipod. I gave the ipod to someone else, but now that I've had the iphone I can not get the audio even though it is downloaded into itunes music like it said to do.  It won't work.

    I have an app called ipieta which was originally downloaded onto an ipod. I gave the ipod to someone else, but now that I've had the iphone I can not get the audio even though it is downloaded into itunes music like it said to do.  It won't work.  I've tried more than several times to get help but nothing helps. Do I need to deauthorize the ipod or perhaps erase all the downloaded ipieta stuff and start over?
    Thanks for any suggestions

    Sorry. There's nothing anyone can do. The current version of the facebook app will not run on 4.2.1. The iPhone 3G won't run anything higher than 4.2.1. You're stuck.
    Maybe it's time to buy yourself a new iPod Touch.

Maybe you are looking for

  • My images do not show up on my published website.

    I am a beginner in Dreamweaver (having only made one other website 3 years ago in college). I have my images in my Assets folder, I place the image in dreamweaver, save it, test it, and it works fine. But when I "put" my website on the internet, my i

  • 3 iOs 5 bugs no one seems to be talking about

    I've noticed 3 bugs in iOs 5 that no one seems to be talking about. 1.  Sometimes the setup personal hotspot toggle in settings will keep thinking even if you don't tap on it.  I believe this contributes to the poor battery life.  I've found the only

  • SAP Business One v8.8 (PL12) - Upgrading

    Hello Forum this is my first post so apologies.... I am trying to establish a SAP B1 v8.8 test environment on a 'offline' server. I am encountering 2 issues when installing/upgrading... Original environment:          HP ProLiant Server          5gb R

  • Transfer Information to This Mac from Encrypted Time Machine?

    I just got a new Macbook Pro (factory fresh) and wanted to move my data from my Encrypted Time Machine (on a USB drive).  The older Mac that I'm moving of off is running the 10.7.2 and I have been back it up daily to my Time Machine disk. I attach th

  • Viewing source code Safari 8.0

    How do you view the source code for a website in Safari 8.0/Yosemite?