Need help to find something

Okay i have a small problem maybe you could assist me .
I am not quite sure how the indexof() fucntion workS I have a void method which is meant to look into the hashmap and then return any values to the screen ,
so say a person typed in computing then it would have to return all the courses with comptuting in it
Im just wondering how do I search through it here is what I have so far ill paste it maybe one of you can help me out with this last method
* @author (your name)
import java.util.* ;
public class CourseDirectory
private HashMap dir ;
public CourseDirectory()
dir = new HashMap() ;
public void add( Course c )
dir . put ( c . getcourseCode() , c . getcourseName() ) ;
public String lookup( String code )
String result = ( String ) dir . get ( code );
return result ;
public String toString()
String result = "\nCourseDirectory\n\n" ;
Set codes = dir . keySet() ;
Iterator it = codes . iterator() ;
while( it . hasNext() )
String word = ( String )it . next() ;
String definition = ( String ) dir . get( word ) ;
result += word + " : " + definition + "\n" ;
return result ;
public void findCoursesLike( String descriptionContains)
in this method I have to check the courses , which are entered in another class I just cant figure out a way to check through and the indexof is giving me some slight problems .
Weoll ne help is much appreachiated

so i take it no one is willing to help me , I dont want code snippits I just want to know in some minor detail how how the indexof() works

Similar Messages

  • I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    What file format did you export it to?

  • Need help to find photo's on my backup drive,since installing Mountain Lion cannot find where they are stored.The backups after ML install are greyed out except in Applications, MyFiles and Devices really welcome a hand with this please.

    I need help to find my photo's please (2500) on my backup drive.Lost them after doing a clean install of Mountan Lion I have tried to find them but had no luck.  I use Time Machine with a 1TB Western Digital usb drive. Thanking anyone in anticipation of a solution.

    -Reece,
    We only have 1 single domain, 1 domain forest, no subdomains, only alias. I had replied to the other post as well. But I am happy to paste it here in case anyone want to read it.
    So, after a few months of testing, capture and sending logs back and forth to Apple Engineers, we found out there is a setting in AD, under User Account that prevent us to log into AD from Mountain Lion. If you would go to your AD server, open up a user account properties, then go to Account tab, the "Do not require Kerberos preauthentication" option is checked. As soon as I uncheck that option, immediately I was able to log into AD on the Mac client. Apple engineers copied all my AD settings and setup a test environment on their end and match exact mine AD environment. They was able to reproduce this issue.
    The bad part about this is... our environment required the "Do not require Kerberos preauthentication" is checked in AD, in order for our users to login into some of our Unix and Linux services. Which mean that it is impossible for us to remove that check mark because most, if not all of them some way or another require to login into applications that run on Unix and Linux. Apple is working to see if they can come up with a fix. Apparently, no one has report this issue except us. I believe most of you out there don't have that check mark checked in your environment... Anyone out there have any suggestion to by pass or have a work around for this?

  • Need help in finding the number of occurrences of a pattern.

    Hi All,
    I need help in finding the number of occurrences of a pattern in a table's column's data.
    Consider sample data - one row's column from a table:
    "S-S-S-A-S-S-P-S-S-B-S-A-P-S-S-C"
    My requirement is:
    I should get the count of S's which are immediately preceded by A or P.
    for the above data i should get count as 3+2+1=6 (S-S-S-A, S-S-P, S-A)
    The pattern data is stored as VARCHAR2 type.
    Thanks in advance,
    Girish G
    Edited by: Girish G on Jul 21, 2011 11:22 PM

    I am sure there exists a better way then this one:
    SQL> with dt as
      2  (select 'S-S-S-A-S-S-P-S-S-B-S-A-P-S-S-C' str from dual)
      3  SELECT SUM(Regexp_count(Regexp_substr(str, '(S\-?)+(A|P)+', 1,
      4                                     Regexp_count(str, '(S\-?)+(A|P)+') - (
      5                                                  LEVEL - 1 )), 'S')) len
      6  FROM   dt
      7  CONNECT BY LEVEL <= Regexp_count(str, '(S\-?)+(A|P)+')
      8  /
           LEN
             6

  • Need help in finding mpeg2 component number to unlock key so I can burn a dvd?

    Need help in finding mpeg2 component number to unlock key so I can burn dvd?? I have premiere elements 3.0
    Thanks,
    sylvia

    Sylvia,
    I cannot comment on PrE 3, as I did not start until PrE 4. With the latter, when one went to use one of the modules, they were automatically "registered." Based on comments in the Help file, I asked pretty much this same question, back then. All was done automatically, in PrE 4.
    Maybe those, familiar with PrE 3, can be of help to you.
    Good luck,
    Hunt

  • Need help for finding objects impacted by size change for an infoobject

    hi all,
    need help for finding objects impacted by size change
    for xxx infoobject, due to some requirements, the size to be changed from
    char(4) to char(10), in the source database tables as well as adjustment
    to be done in BI side.
    this infoobject xxx is nav attribute of YYY as well as for WWW
    infoobjects. and xxx is loaded from infopkg for www infoobject load.
    now that i have to prepare an impact analysis doc for BI side.
    pls help me with what all could be impacted and what to be done as a
    solution to implement the size change.
    FYI:
    where used list for xxx infoobject - relveals these object types :
    infocubes,
    infosources,
    tranfer rules,
    DSO.
    attribute of characteristic,
    nav attribute,
    ref infoobject,
    in queries,
    in variables

    Hi Swetha,
    You will have to manually make the table adjustments in all the systems using SE14 trans since the changes done using SE14 cannot be collected in any TR.
    How to adjust tables :
    Enter the table name in SE14. For ex for any Z master data(Say ZABCD), master data table name would be /BIC/PZABCD, text table would be /BIC/TZABCD. Similarly any DSO(say ZXYZ) table name would be /BIC/AZXYZ00 etc.
    Just enter the table name in SE14 trans --> Edit --> Select the radio button "Save Data" --> Click on Activate & adjust database table.
    NOTE : Be very careful in using SE14 trans since there is possibility that the backend table could be deleted.
    How to collect the changes in TR:
    You can collect only the changes made to the IO --> When you activate, it will ask you for the TR --> Enter the correct package name & create a new TR. If it doesn't prompt you for TR, just goto Extras --> Write transport request from the IO properties Menu screen. Once these IO changes are moved successfully, then the above proceduce can be followed using SE14 trans.
    Hope it helps!
    Regards,
    Pavan

  • Need help for finding oracle payables tables

    Hi,
    I need help for finding tables relating fields INVOICE_ID, NOTIFICATION_ID and APPROVAL_STATUS or WFAPPROVAL_STATUS. I have searched a lot but has been unable to find any table containing all the above mentioned fields. I found the table WF_NOTIFICATIONS for INVOICE_ID, however have been unable to find the latest tables with INVOICE_ID and APPROVAL_STATUS as fields.
    All the tables having this combination are either very old tables which are not used anymore or doesnt give the required data. Please let me know where am i going wrong. Once i get the required tables, i need to join the tables to get the required data with the imp fields. Also, the values of WFAPPROVAL_STATUS are not very clear to me. I need values for it as APPROVED, REJECTED AND INITIATED.

    Hi Swetha,
    You will have to manually make the table adjustments in all the systems using SE14 trans since the changes done using SE14 cannot be collected in any TR.
    How to adjust tables :
    Enter the table name in SE14. For ex for any Z master data(Say ZABCD), master data table name would be /BIC/PZABCD, text table would be /BIC/TZABCD. Similarly any DSO(say ZXYZ) table name would be /BIC/AZXYZ00 etc.
    Just enter the table name in SE14 trans --> Edit --> Select the radio button "Save Data" --> Click on Activate & adjust database table.
    NOTE : Be very careful in using SE14 trans since there is possibility that the backend table could be deleted.
    How to collect the changes in TR:
    You can collect only the changes made to the IO --> When you activate, it will ask you for the TR --> Enter the correct package name & create a new TR. If it doesn't prompt you for TR, just goto Extras --> Write transport request from the IO properties Menu screen. Once these IO changes are moved successfully, then the above proceduce can be followed using SE14 trans.
    Hope it helps!
    Regards,
    Pavan

  • I need help in finding a free update for my windows 7.5 mobile

    I need help in finding a free update for my mobile 7.5 windows phone
    Message was edited by: chevycamer427

    http://www.windowsphone.com/en-us/store/app/adobe-reader/bc4f319a-9a9a-df11-a490-00237de2d b9e
    [topic moved to Windows Phone subforum]

  • I need help in finding all the new fontsin iPad 2 using iOS  5

    I need help in finding all the new fonts in ipad 2 using ios 5

    You cannot change the email font. You can make it bold, italics and underline the type, but Helvetica is your only choice in the mail app.
    In the notes app you have 3 choice Noteworthy, Helvetica and Marker Felt. The font can be changed in Settings>Notes>Font.
    You can only use fonts that are built into the app that you are using at the time. You cannot pick and choose fonts from a list of all of the fonts that may be on the iPad but only from the list of fonts that the app allows.

  • I need help to find the serial number for Photoshop Elements 11

    Hi! I need help to find the serial number for Photoshop Elements 11 I downloaded last year on Apple Application Store.. I have been using photoshop on mac for over a year and now need the serial number to be able to use it on macbook. I looked up Adobe's website for help but found none and noone to ask for support.. Any ideas how I can get the serial number using the App Sore bill I have?

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • I need help with finding right stylus pen for lenovo yoga 2 pro!

    I did read other person's post, but I did not find my answer. I am currently using my fingers to write my notes and it drives me nuts! I do have a stylus pen that have huge round fabric tip. It does not write well. I want a stylus pen with pointy end so I can acturally take my notes on OneNote. I writes equations down so it is very hard to write small and neat with my hand. I do know that my laptop is touch sensitive so it only works with rubber or fabric tips! I could not find any stylus pen with those tip that are pointy.... I need help on finding pointy tipped stylus pen that will let me write well. I am ordering ati-glare screen protector because I can see myself on the screen like a mirror... lol Hopefully this will not keep me from finding a pen that works well! Please give me link to the pen, if you can! Thank you for reading!

    ColonelONeill is correct.
    The Yoga 2 Pro does not have a digitizer, so a capacitative stylus, which mimics a fingertip, is what you'd need.
    Regards.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Community Resources: Participation Rules • Images in posts • Search (Advanced) • Private Messaging
    PM requests for individual support are not answered. If a post solves your issue, please mark it so.
    X1C3 Helix X220 X301 X200T T61p T60p Y3P • T520 T420 T510 T400 R400 T61 Y2P Y13
    I am not a Lenovo employee.

  • Need help to find out link between process order and purchase order.

    Hi All,
    Need help to find out link between process order and purchase order.
    We have purchase order, we can find out associated process order in MD09 (No Purchase Requisition found in Purchase order). When I tired to replicate this scenario with same material in system but not able to do.
    Please suggest me what needs to check to get purchase order link to process order.. (this is not subcontracting )
    Edited by: SAP PQ on Sep 26, 2011 5:24 PM
    Thanks,
    SAP PQ
    Edited by: SAP PQ on Sep 26, 2011 5:24 PM

    MD09 is pegging. In SAP pegging is dynamic, meaning that there's no fixed link between purchase order and process order in your case.
    This is why you did not get the same result when you tried again later.
    Such a link can exist only if you do direct procurement for the order.

  • I need help to find my iphone 5C. I have id apple but perhaps I can do more to find it. Please contact to ********

    I need help to find my iphone 5C. I have id apple but perhaps I can do more to find it. Please contact to ********
    <Edited by Host>

    Hi Oliveira_Lisboa,
    The article below has some information about the options and features available, it also has some tips that might help you locate your iPhone.
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/ht5668
    If you lose your iOS device or think it might be stolen, these steps may help you locate it and protect your personal data.
    If you enabled Find My iPhone on your missing device
    These steps require that Find My iPhone was enabled on your device before it was lost or stolen.
    Attempt to locate your device using Find My iPhone at icloud.com/find, or using the free Find My iPhone app.
    Put the device in Lost Mode to set a 4-digit passcode and display a custom message with your phone number on your device. While the device is in Lost Mode, you can also keep track of changes to your device's location. Lost Mode requires that your missing device be using iOS 6 or later. If your device is using iOS 5, you can still lock your device remotely and display a message on the screen.
    If you want to delete all of your personal information from your missing device, you can erase it remotely. Please note that when you erase a device, you will no longer be able to locate it.
    Report your lost or stolen device to local law enforcement and your wireless carrier. Apple doesn't track or flag lost or stolen products, but you can use My Support Profile (supportprofile.apple.com) to find a list of serial numbers for products that you've purchased or registered with your Apple ID.
    Note: If your missing device is offline, you can still put it in Lost Mode, lock it, or erase it. Your commands will take effect when the device comes back online.If you did not enable Find My iPhone on your missing device
    If you did not enable Find My iPhone before it was lost or stolen, you can't use it to locate or protect your device, but you can still follow these steps:
    Change your iCloud password to ensure that no one else can use your device to delete or make changes to your iCloud data.
    Report your lost or stolen device to local law enforcement and your wireless carrier. Apple doesn't track or flag lost or stolen products, but you can use My Support Profile (supportprofile.apple.com) to find a list of serial numbers for products that you've purchased or registered with your Apple ID.
    Additional Information
    Visit iforgot.apple.com/appleid if you need help remembering your Apple ID.
    -Jason

  • Need help to find the "leading point size"

    Hi,
    I need help to find the "leading point size".
    Any para style leading is more than 2 points of my font size, I need the alert message "Its more than 2 points for your font size". For instance my para font size is 10 here my leading should be 12 points rather than its 14 points, I need the alert message.
    Is this possible by script?
    by
    hasvi

    Hi Hasvi,
    Try this.
    var doc = app.activeDocument;
    var texts = doc.stories.everyItem().textStyleRanges.everyItem().getElements();
    var pstyle = "Following paragraph styles have more leadings:\r\r";
    for(var i=0;i<texts.length;i++)
        var ps = texts[i].pointSize;
        if(texts[i].leading > ps + 2)
            pstyle += texts[i].appliedParagraphStyle.name;
    alert(pstyle)
    If it is correct than mark the answer as correct and don't mark your question as correct answer.
    Regards,
    Chinna

  • I lost my ipod I really need help to find it. Im from other country and i cant buy another one. Is not connected to internet

    I lost my ipod I really need help to find it. Im from other country and i cant buy another one. Is not connected to internet

    There is nothing anyone can do.
    Sorry.
    You will have to keep looking for it

Maybe you are looking for

  • HT1414 after a software update the device is not working properly and can not open any website.

    I can operate it properly after an software update . Now no website cannot be opened and cannot get emails. Main thing cannot go to tunes and app store .

  • RfcAdapter received a synchronous message. Trying to send sRFC for SALERT_C

    Hi All, I am receiving the message  'RfcAdapter received a synchronous message. Trying to send sRFC for SALERT_CREATE' in my receiver RFC channel used to trigger alerts from PI to ECC. no emails are getting generated. Please advice. Regards.

  • Re:Rolling 12 Months

    Hi Gurus, I need to achieve [netvalue] of current month and previous 11 months i.e rolling 12 months net value. In universe there is no date object , there's only Fiscal year(number) and Fisal month(string) How Can i achive the Total net value of rol

  • IPad 2 problem after ios5 update

    I have just updated my iPad 2 to ios5 yesterday. Everything was working fine until a couple minutes before when I couldn't click on any apps in the store. I could click on the BUY button but not entering the page to see the details of the app. My par

  • Extracting Video from an iDVD burned DVD

    I have DVDs for projects I burned from iMovie projects to iDVD, but I no longer have the iMovie projects. I'd like to extract the video from the DVD into DV or MPG 4. I'm looking at maybe buying Roxio Popcorn 4 to do this as they claim it will conver