How to remove the words such as the, is , are, and or  from text file

my problem is
i want to make an application to do that
eceives a test file from the user, this file contains a list of words , the program must do the following
1- Remove the words such as the, is , are, and or
2- Count the number of occurrences of each word
3- Display a two column message, the first column contains a word and the second column contains the number of repetitions of this word
i make number 2 and 3 how can i do number 1

I would accumulate word frequency in a Map<String, Integer> -- is that what you are doing? But before processing a word I would check to see if it is contained in a Set<String> of common words. In which case further processing of the word is not required.

Similar Messages

  • How to  remove the Special characters like @,#,$ ,..from field

    How to  remove the Special characters like @,#,$<,..from text  field. we nedd to remove any specila char from text field .
    ex:text  = just#fi%cation@text
    the text should be justification.

    hi check this ..
    data:char(25) value '5#4#2#&1#&',
         char1(9) .
           replace all occurrences of '#' in char with 'and' .
           replace all occurrences of '&' in char with 'num' .
         write: char.
    or use this..
    data:char(25) value 'test@ing*5#4#2#&1#&',
         char1(9) .
           replace all occurrences of '#' in char with space .
           replace all occurrences of '&' in char with space .
           replace all occurrences of '@' in char with space .
           replace all occurrences of '*' in char with space .
         write: char.
    regards,
    venkat.

  • I got a new macbook pro and now I need to know how to remove the prior owners itunes id from my computer?

    I got a new macbook pro and now I need to know how to remove the prior owners itunes id from my computer?

    If you purchased a computer from another person, you need to wipe it clean.  To do this, click on the link - Erasing disks securely 
    Depending on your model Macbook Pro...
    Start up from your install disc, go to Disk Utility and select the disk and click erase - to securely erase data click Security Options and Erase Free Space which will entirely wipe your disk, overwriting it with zeros so that no data is recoverable.

  • HT201456 how to remove the icon Apple and Bootcam on the screen ?

    how to remove the icon Apple and Bootcam on the screen ?

    please forgive me, I usually ask question on these boards, not answer them :/ but wouldnt...
    btn.setIcon(null)do it?

  • How to load date and time from text file to oracle table through sqlloader

    hi friends
    i need you to show me what i miss to load date and time from text file to oracle table through sqlloader
    this is my data in this path (c:\external\my_data.txt)
    7369,SMITH,17-NOV-81,09:14:04,CLERK,20
    7499,ALLEN,01-MAY-81,17:06:08,SALESMAN,30
    7521,WARD,09-JUN-81,17:06:30,SALESMAN,30
    7566,JONES,02-APR-81,09:24:10,MANAGER,20
    7654,MARTIN,28-SEP-81,17:24:10,SALESMAN,30my table in database emp2
    create table emp2 (empno number,
                      ename varchar2(20),
                      hiredate date,
                      etime date,
                      ejob varchar2(20),
                      deptno number);the control file code in this path (c:\external\ctrl.ctl)
    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime, ejob, deptno)this is the error :
    C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 5
    C:\>any help i greatly appreciated
    thanks
    Edited by: user10947262 on May 31, 2010 9:47 AM

    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime, ejob, deptno)Try
    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime "to_date(:etime,'hh24:mi:ss')", ejob, deptno)
    this is the error :
    C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 5
    C:\>
    That's not an error, you can see errors within log and bad files.

  • How to remove the application which is downloaded from app store

    I have downloaded pocket pond application from app store. However I would like to remove it as I do not like it. Can you let me know how to remove the application?
    Regards
    AADK

    Press and hold the icon until it wiggles.  Press the x to delete the app.  Press the Home button when done.
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf

  • How to remove the lines above and below  header in sqlplus report

    I run a sql*plus report whch i want to be outputted to XLS file. But the format is not matching. I am using data->texttocolumns feature of excel , which is manual .
    As the headers are coming dynamically from query . i CAN NOT set header off.
    So first of all ,
    I want to get rid of the first blank line above the hearder.
    i want to get rid of the dotted line below header .

    Hi,
    You are not being clear here,
    As the headers are coming dynamically from query . i CAN NOT set header off. You are saying that you have SQL*Plus script but can't use the SET command?
    Besides, that I thing you want SET PAGES 0, instead of SET HEADER OFF.
    If you could paste your SQL*Plus script here (Perhaps replacing the actual query with a very simple one, then perhaps we can help.
    Regards
    Peter

  • How to fetch the Business area field value from MIRo into report

    Hi,
    I want to create a report for MIRO with payment details.
    How to fetch the business area field value in to report.
    What is the table name. I verified it is storing in structure. Which is the right table for fetching that value with reference to MIRO.
    After that, how to find the accounting document for payment and check details.
    What are the table names and field names. What we can get from PAYR table.
    With regards
    Lakki

    Dear,
    For Bussiness area
    RKPF-GSBER

  • HT1212 i have forgotten the password to my ipad and it says connect to itunes but my computer cant connect to the ipad because of the code and i need it know how to wipe the whole ipad and start from scratch?

    i have forgotten the password to my ipad and its says connect to itunes but i cant connect it to my computer because of the code on the ipad so i need to know how to wioe the whole ipad and start again like a brand new ipad?

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • How to remove the standard Exit and Help buttons from the iviews

    Hi All,
    We migrated the ESS application from standalone ITS based on 4.6c to ECC 6 based Integrated one.  After converting that into ICF service and when we created the iview for it in the portal(EP 7)  It is showing two hyperlink items EXIT and HELP by default at the top of every iview.  So, Can anybody tell me how to remove them from visibility.
    And also, the iviews are not showing the table grids etc in the integrated environment.  Is there any change that need to be done, for getting the table grids and all to look as it is in the previous envoronment.
    Thanks & Regards,
    Ravi

    Hello Ravi,
    You should be aware that many of the ESS transaction are not supported on the Integrated ITS, see note 870126 for more details.
    To remove the "Exit" and "Help" you can use the ~webgui_simple_toolbar parameter, please see note 1010519. 
    Some tables have an option to show the gridlines or not.  Please see if there is a table options icon in the upper right of the table to change the configuration.  I'm not sure if what kind of table you're referring to so it may or may not be available.
    Edgar

  • How to remove the extra or blank space from RTF Template

    Hi All,
    Try to remove the extra space from  xml template.
    Here I have attached the .xml file with .rdf, here the issue is when you load the data we will get 2 page output but when I am trying to add any column or extra space in the last page of this template the output getting 4 pages with lot of blank space. Could you please guide me to solve this issue.
    Could you please let me know how to do the attachement in this forum as I am new to this community.
    Regards,
    Sushant

    Can you drop in a mail with RTF, xml data to [email protected], I will help you on the issue.

  • How to remove the old verison of firefox from my mac os x? I have downloand the new verison of firefox, but i can not open it.

    When I go to open up the new version of firefox it tell me that Mac OS X can't be open. I have the 2 icon on my desktop. How do I remove the old one to open up the new Icon version of the firefox

    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • How to remove the button "play" and "stop" in that flash animation?

    The animation is this one ...
    http://adf.ly/OTGyh
    Hello, I made a simple flash animation of a character talking ... The only problem is that this animation has the button "play" and "stop" and I do not want it ...
    I want so carry out the main character speak the message and stop yourself automatically without user intervention to push any buttons ...
    I have the animation code, how do I get this code to the buttons and start the animation so load the page?
    Ah, and how to put the link to a page by clicking on this open a flash site?

    How to do it step-by-step? Because i'm beginner in FLash and that things of animation, codes, functions...
    And I create that simple animation in other program, not using the Adobe Flash, but I think can be edited that file animation in Flash because I have the files ".swf" and ".flv"...
    I don't know how to do it in Adobe Flash CS3, but I have that program installed in my pc, then can you talk me what to do it?
    Sorry my bad english, i'm from Brazil.
    That is the folder contains the files:
    https://dl.dropboxusercontent.com/u/11826717/off/laranja/files_animation.jpg
    That is the Download the files of that folder if you want see better:
    https://dl.dropboxusercontent.com/u/11826717/off/laranja/laranja.rar

  • How to remove the option "Search This Site" from search box on customized Master Page in SP 2013

    Hi Everyone,
    I want to remove the option "This Site" from search box on Master page. I have searched this forum and found tips. I have added the
    <Property Name="DropDownModeEx">ShowDD_NoContextual</Property>
    in the file SearchArea under
    C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\FEATURES\OSearchEnhancedFeature
    But it didn't work. The tips is for SP 2007. Anyone can help me to change this in Sp 2013?
    Thanks.
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
        <Control
            Id="SmallSearchInputBox"
            Sequence="25"
            ControlClass="Microsoft.SharePoint.Portal.WebControls.SearchBoxEx" ControlAssembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
     <Property Name="GoImageUrl">/_layouts/images/gosearch15.png</Property>
     <Property Name="GoImageUrlRTL">/_layouts/images/gosearchrtl15.png</Property>
     <Property Name="GoImageActiveUrl">/_layouts/images/gosearchhover15.png</Property>
     <Property Name="GoImageActiveUrlRTL">/_layouts/images/gosearchrtlhover15.png</Property>
            <Property Name="UseSiteDefaults">true</Property>
            <Property Name="FrameType">None</Property>
            <Property Name="ShowAdvancedSearch">false</Property>
            <Property Name="DropDownModeEx">HideScopeDD_DefaultContextual</Property>
     <Property Name="DropDownModeEx">ShowDD_NoContextual</Property>
            <Property Name="UseSiteDropDownMode">true</Property>
        </Control>   
    </Elements>
    This is the link I found
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/dc35ccf4-bc94-4827-9f16-83478c8642d1/removing-thissite-from-search-dropdown

    Hi
    Please try this .. add this in your master page and check
    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script>
    $(document).ready(function() {
    document.getElementById("SearchBox").children[0].children[0].value="Search";
    document.getElementById("SearchBox").children[0].children[0].title="Search";
    </script>
    Manoj Gangwar | Sharepoint 2010 MCPD | Sharepoint 2010 MCTS

  • How to remove the stubborn 3rd party software from my curve

    Here are the softwares that I want to remove-
    ICQ, AIM, Myspace, Yahoo search, Google talk, Yahoo messenger, Window Live messenger...  I never use those softwares.  I tried using desktop manager, those softwares aren't even on the list.  And, I tried to use applications under advanced options, it did remove from the list then reboot the curve,  they still come back on the curve.  They are so stubborn!  Can anyone help? 
    Thanks,
    Amy

    once you remoe them from applications they are gone. When you restart your device, only the icon comes back, if you were to actually click on that icon, it wont run the program, it will download and install it first. The reason for this is because its part of your plan from your carrier and is always pushed back to your device. if you ahve them uninstalled, u are saving space, then just hide the install icon.

Maybe you are looking for

  • How do I use one iPhoto library on multiple computers?

    I have a laptop and my wife has a laptop...how do we share one commone iPhoto library? How would that work with syncing our iPhones? I'm thinking we should get a shared network drive at home...but then our photos would not be available when we're not

  • Help required on Transaction MD4C - kindly check

    Dear SDN guys,                     Kindly help me with this complex issue... Hope you know transaction MD4C....Multi order level report....i want this to be solved in ECC 5.0 ver where enhancement category is not allowed....i have to run this report

  • Best way to have an image span two columns in a CSS layout?

    My homepage is a typical fixed width three column layout. For the inside, content pages, I basically need the same layout except I need to have an image that spans the left and center columns at the top. Below the image, the left and center columns s

  • JDeveloper 12c with JDE 9.1 Standalone

    Hi all, I'm trying to use JDeveloper 12c with JDE 9.1 Standalone to study Business Services, How I can make it works? Tks, Diego Borin.

  • Photos showing in Photo browser after editing

    Each time I edit a photo and later when I bring up the Organizer I find that photo in the Photo Brower with no tags. Did overlook a setting in the photo editor as I would like to have only photos that I want go get later from staging folder, camera,