Possible to tell what lines a word appears on?

Hello, want to know how i can tell what lines a specific word appears on with all the words in a matrix.
EX
"I went and
ate
pie because
i am a hungry
person and love pie"
ok, now i have every single word in a seperate cell in a String matrix. Heres what i want to do.
I - 1,4
went - 1
and - 1,5
ate - 2
etc.
How to do it?
thanks!

i dont need to read the line. Heres what i did, i wrote the words to a file, i used in.readLine() to read the lines. Once i read the lines i used String Tokenizer to get get the plain words. I put those plain words into a matrix and each cell moving down is the next line and each cell moving right is each word. Example:
I went
to the store
cell[0][0]="I"
cell[0][1]="went"
cell[1][0]="to"
cell[1] [1]="the"
cell[1][2]="store"
now ill say it again... All i want to do is tell me what line# each word has come up in. Refer back to the first example in the first post.

Similar Messages

  • Is it possible to tell what OS is on the device by the serial number on the box?

    I just got a BB curve and it has OS 4.3. I want OS 4.5 but I have a mac so I can't load it. I also went to several sprint stores and they couldn't update my BB for me.
    So, I am wondering if you can tell what OS may be on the device (i.e., the date of manufacture) from the serial number. If you can, does anybody have any idea what to look for in the SS number or how to interpret it? I'm thinking of going back to the store where I bought mine and replacing it with a new one with a later serial number and I want to make sure that I get one with 4.5.
    Solved!
    Go to Solution.

    You'll have to do the update on a PC. However once you update to 4.5 you can make use of the wireless upgrade feature
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • F4IF_INT_TABLE_VALUE_REQUEST - what line was selected from list displayed

    I am building an internal table and displaying it as search help using F4IF_INT_TABLE_VALUE_REQUEST.  How can I tell what line was selected from the search help?  Only one field is filled with the selection, but there are several other fields attached to this that I need in my program - but I can't tell which line was selected, and the one field is not enough information to use to get the record from the internal table.

    Hi,
    RETURN_TAB would have the selected values.
    FIELD_TAB will have the hit list fields.
    DYNPFLD_MAPPING will have the Assignment of the screen fields to the internal table.
    Regards,

  • I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes

    I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes: I downloaded the last version (it's free), but I cannot do the same with iphoto, and more important: I need to know what is happening!!! Please help me!

    Applications should not disappear all by themselves.
    If they are then that coud indicate serious problems with your hard drive.
    Backup everything up as quickly as possible.
    Using Disk Utility verify your system disk.
    Allan

  • Hi i just bought tyhe product Export PDFs to Word and Excel . but ni only sussace conver the small file ,the large file such as n3000kb ,it can't work, please tell what can i do now thanks

    Hi i just bought tyhe product Export PDFs to Word and Excel . but ni only sussace conver the small file ,the large file such as n3000kb ,it can't work, please tell what can i do now thanks

    Hi i just bought tyhe product Export PDFs to Word and Excel . but ni only sussace conver the small file ,the large file such as n3000kb ,it can't work, please tell what can i do now thanks@

  • Message received when openning the  Adobe Premiere Elements 12 "Not possible to initialize on-line services" What do I have to do?

    Hello,
    How can I fix this problem?
    Message received when openning the  Adobe Premiere Elements 12 "Not possible to initialize on-line services" What do I have to do?
    Thanks in advence,
    FL

    FLOureiro
    What computer operating system is your Premiere Elements 12 running on? Have you updated 12 to 12.1 Update using an opened project's Help Menu/Update? If not, please do so.
    For your immediate issue, have you update the Online Services in preferences?
    Where are you in the program when you get the message "Not possible to initialize on-line services".
    Are you in a country outside of the USA?
    There certain online services that are just not available outside the USA.
    Please review and consider and then, based on your details, we will consider what next.
    Thank you.
    ATR

  • When i switch on my macbook its icon first appears smallers then gets bigger and the place where we enter the password.......that page looks like over zoomed. Please help tell what to do????

    when i switch on my macbook its icon first appears smallers then gets bigger and the place where we enter the password.......that page looks like over zoomed. Please help tell what to do????

      Reset PRAM.   http://support.apple.com/kb/PH18761

  • Counting times a word appears in document

    I am trying to read from a file and count how many times a word appears in that document.
    For example if i had a list of names
    Daniel Fowler
    Joe Mahogony
    Daniel Peterson
    Chris Sim
    How would you count the amount of people named Daniel and display it?
    I am currently using findInLine"Daniel" but when ran no luck.
    Any ideas?

    danieltnbaker wrote:
    deepak,
    the bufferedreader reads content from the file yes?
    but what method would i use to count the amount of a word in that file?
    finInLine finds the word but cannot turn that into an integer. any other methods?first of all the code I had posted in my previous post should work and it uses the Scanner to read the file.
    If you want to use the FileReader approach the within the code that actually reads the file line by line, you can use the String.indexOf method (as suggested by nclow) to check if a particular word is present in that line of the file. IF it is there you increment a counter.
    int counter = 0;
    // Read through the entire file
    String currentLineFromFile = bufferedReader.readLine(); // throws IOException
    while(currentLineFromFile != null)
        // Add a carriage return (line break) to preserve the file formatting.
        textFromFile.append(carriageReturn + currentLineFromFile);
        currentLineFromFile = bufferedReader.readLine(); // throws IOException
          if (currentLineFromFile.indexOf("Daniel") != -1)
                counter++
          System.out.println("No of occurances- " + counter);
    }hope this helps
    [email protected]
    Edited by: deepak_1your.com on 16-Apr-2008 14:18

  • I have unknown charges on my account. How can I tell what I am being charged for?

    I would like to know how to tell what I am being charged for. I have two .99 charges on my bank account and I am unsure as to what they are for. One in particular is from today and I have not purchased anything. I did do some app updates. Am I being charged for updating a purchased app?
    I would like to know how to get the specific information of purchases that are appearing on my bank statement. I have tried searching for the reference number from my statement but did not find anything.
    Thank you!

    It could be:
    iTunes Store & Mac App Store: About credit-card authorization holds
    You could contact itunes support and ask.  Click Support at the top if this page, then click the link under Contact Us

  • Is there a way to tell what is actually being passed to DB from PreparedSta

    Is there a way to tell what is actually being passed to DB from PreparedStatement? What I mean by that is that I have a PreparedStatement that is a simple
    prepstmt = connection.prepareStatement("Insert into table (col1, col2, col3, .... colx) values (?,?,?....?)");
    (there are x ?s)
    I precompile this, and later, when there is a connection I call set all the variables
    prepstmt.setInt(1, someint); prepstmt.setString(2, "\\'" + somestring + "\\'"); etc... prepstmt.executeUpdate();
    I get back an exception thrown by Oracle complaining that one of my values is too large for the column (but doesn't say what column/value).
    So I made a string that contains what ought to be the same query
    String debug = "Insert into table (col1, col2, col3, .... colx) values (someint,'somestring',etc....someotherint)"; System.out.println(debug);
    I give the printed out line directly to Oracle through SQLScratchpad and it works just fine in there and I can confirm the row has been inserted. Nothing is too big.
    Is there a way to look at what the PreparedStatement actually has as values in there? I found I could look at the original statement (the one with the ?s) if I expand the prepstmt object in the debugger's (Eclipse) view, but nothing to show me where the values were filled in.
    Thanks for any help you can give me.

    Hrm, I'm suspecting that perhaps it has to do something with setting CHAR fields. Some of the fields in this table are CHAR but I don't see a call in my PreparedStatement that can set a char, only a String, so that's what I've been using, but it may be that that's not the right thing to do. I'm running Java 1.5.10, and looking through the API there doesn't seem to be anything specifically for char.

  • How can you tell what song it is stuck on?

    Is there a log or a way to tell what song match it stuck on? I see a lot of generic "stuck on step 2" posts, but nothing really of any substance.  I have figured out that if I delete my "Cache.db" file it appears to rebuild the match database, but I still seem to be stuck on a single track.
    Anyone have any helpful info?

    Ahh ok, well that makes me feel better. I wish they would log it somewhere so we could at least track if the issue is on our end or theirs.
    I'm on 8517 of 24123.
    I was adding them album by album, but it was taking forever, so i just threw them all in one directory and said ef-it.
    Thanks for the info.

  • Blinking folder with question mark and a new hard drive: also installing Mountain Lion and 0 with a line through it appears please help?

    Okay so my harddrive failed in my 13" Macbook I used to have a WD scorpio black 250 gb for a while. I upgraded to a WD scorpio black 500 gb 7500 rpm hard drive. Okay so I installed the harddrive and ran my friends startup disc to learn that grey face discs are specific to that computer. The start up disc ran fine (minus the error stating it could not install OSX because its specific to another computer) and I looked in disc utility after installing the new harddrive and it said verified. I lost my startup disc and did not have another one. Using a friends mac I created a bootable USB drive with mountain lion on it, I plug it in and it comes up and when I choose to start up on the harddrive a 0 with a line going throguh it appears. If I do not start up with the USB or my friends startup disc then a blinking folder with a question mark appears. So my question is what could the problem be if a startup disc runs on a new WD harddrive and says under disc utility that its verified but the 0 with a line through it appears after I try to boot it with a flash drive containing mountain lion? WHats the issue here im completely lost now

    Sounds like some sort of power issue and now your drive is not working.
    You'll have to take this to Apple for repair.
    You should read this if you don't have recent backups of your data off the machine.
    My computer is not working, is my personal data lost?

  • Down Payment settlement Line is not appearing in the final Billing

    Hello All,
    Activated the Milestone billing plan. Created a Sales order > Down payment Billing document > and cleared the Down payment billing document.
    While trying to bill the final invoice the down payment settlement line is not appearing.
    Please suggest us what would be the probable reason for this to resolve the issue.
    Checked in detail and found in the table BSID the field sales document ( VBEL2) is populated with blank and not with the sales order number.
    Thanks & Regards,
    Madhan.

    Hi
    When you create a final invoice the downpayment clearing line is retrieved using function
    module SD_DOWNPAYMENT_READ. The function module will not be able to find the
    downpayment if the VBEL2 and POSN2 fields are not filled.
    If the downpayment is posted and cleared correctly in F-29 (this is the only way) these
    fields will be filled and the document should be retrieved and the value transferred to the
    AZWR condition.
    Run VF01 with a breakpoint in SD_DOWNPAYMENT_READ
    go to the end of the function module you will see the structure t_sdaccdpc
    This is filled with all valid entries for clearing. I suspect in your case it is missing.
    Try posting a new example in using F-29 make sure it shows cleared in the
    document flow then check at this point above in the final invoice
    Hope this helps you further
    Kind regards
    Brian

  • How to tell what version of Acrobat or Reader was last used to save a PDF

    How can I tell what version of Acrobat or Reader was last used to save a PDF file? My users are using fillable forms from grants.gov. We want them to use Adobe Reader 8.1.3 to fill these forms, but some accidentally use the Pro version of Acrobat. They need this to make PDFs from Word & other apps, but Pro will corrupt the fillable forms.
    When I open a saved form in Reader 8.1.3 and click File > Properties it says Acrobat 7.x even though I know it was saved with 8.1.3.
    Is there a way to know which version number and type (Reader or Pro) last saved a PDF?

    But it won't tell you what was used last. It just gives the original information.
    It also won't differentiate between Pro and Standard and of course won't mention Reader at all.

  • How do you tell what RAM chips your RAM has without seeing the actual chips?

    I was wondering about the possibility of actually having Winbond chips in Corsair RAM as I have the Corsair TwinX 1024 DDR3200LL RAM and my system has been completely stable for a month and a half with no BSODs.  Granted, I have not yet overclocked, but Prime 95 and Memtest86 have also run flawlessly.  It seems that very few people have used this RAM with success.  In another post, senator mentioned that some older Corsair RAM had Winbond BH-5 IC chips or some other decent chips as opposed to the current not-so-good chips Corsair is using.  I swear that I saw Winbond on some screen on my PC, but don't remember where.  I checked out Corsair's website, but didn't find anything useful at first glance.  I pulled a stick of my RAM out to look at, as I thought that maybe removing the metal clip might allow removal of the heatspreaders, but it does not.  Does anyone know any other way to tell what RAM chips you have without actually seeing the chips?

    There should be some numbers on the heatspreader, take a look. I found the answer to your question.
    Taken from corsairs forum.
    XMS3200C2 Rev 1.1 uses -6 Rev B
    XMS3500C2 uses -5 Rev B (only rev. 1.1 exists)
    XMS3200LL Rev 1.1 uses -5 Rev B
    Subsequent versions 1.2 and 2.2, have been produced with CH-6 ICs
    Quote
    It seems that very few people have used this RAM with success.
    Im using 1*512mb stick of Corsair CMX512-3200LL. I can run Prime95 and Memtest86+ flawlessly at ([email protected] / (1:1) [email protected]).
    Athlon64 3200+@2230Mhz (1.55v)
    MSI K8T Neo FIS2R (Bios v1.20)
    Corsair CMX512-3200LL@2-3-3-8 (2.8v)

Maybe you are looking for