Searching - Help Please!

Here is my code I wrote to find the amount of letters in the string.but i need to know how to edit this so I can search a paragraph for a string. I have tried many things but no luck. Please Help!! Thanks Michael.
import java.io.*;
import java.util.*;
//Search Through A Character Array
public class Search {
    /** Creates a new instance of Main */
    public Search() {
    // @param args the command line arguments
    public static void main(String[] args) throws FileNotFoundException, IOException {
        //Creates a reader to read in the text
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String Input = "";
        //Read & sets it uppercase to ingore case
        Input = in.readLine().toUpperCase();
        char[] InputArray;
        //Throws input string into a character array
        InputArray = Input.toCharArray();
        //Creates an character array for the 26 letters
        char[] Alpha = new char[26];
        //Intializing letter
        char Letter = 'A';
        //Fills the character array with the letter using a for loop
        for (int i = 0; i < Alpha.length; i++) {
            Alpha[i] = Letter;
            Letter++;
        //Variables intialized
        int Count = 0;
        char StoreAlpha = ' ';
        int StoreCount = 0;
        String OutString = null;
        int Switch = 0;
        System.out.println("In This Word");
        //Creates a for loop to go through the alphabet       
        for (int j = 0; j < Alpha.length; j++) {
            //Creates a for loop to go through the length of the character array
            for (int i = 0; i < InputArray.length; i++) {
                //Checks to see if the input array equals each individual element
                if (InputArray[i] == Alpha[j]){
                    Count++;
                    //Stores the count integer
                    StoreCount = Count;
                    //Stores the alpha character
                    StoreAlpha = Alpha[j];
                    //Sets switch so it can be used
                    Switch = 0;
                    //Combines all information into one variable
                    OutString = "There Is: " + StoreCount + " " + StoreAlpha + "'s";
            //Checks to see if switch has ran through once & then prints output
            if (Switch == 0) {
                System.out.println(OutString);
            //Increments the switch so it does not print more than once
            Switch++;
            //Sets count to zero to reset
            Count = 0;
}

MESSAGE FROM THE FORUMS ADMINISTRATORS and COMMUNITY
This thread will be deleted_ within 24 business hours. You have posted
an off-topic question in an area clearly designated for discussions
about the features and functionality of the forums site. Community
members looking to help you with your question won't be able to find
it in this category.
Community members however will be able to find this message in the
multiple forums you also posted it into.

Similar Messages

  • TS1717 i cant see what im typing in itunes search, help please

    everytime I type something in itunes earch, icant see what im typing but anyway I can search it
    could someone help me please

    I was directed here
    https://discussions.apple.com/thread/3782135
    This is not the exact same problem, but may help.

  • How to create search help for Web Dynpro?

    Hi all,
    I have troubles when creating search help for web dynpro. I have visited this link /people/dirk.rehberg/blog/2006/12/27/generic-search-help-for-web-dynpro-for-java but I can't find this generic search help plug-in for download. If u have this plug-in can u share it for me or upload somewhere for download. Or anyone has already done this search help please help me solve this problem! Thanks in advance!

    Hi Dinh Thieu Thien,
    please place such a request to the appropriate forum "[Web Dynpro for Java|Web Dynpro Java;".
    Thanks and regards,
    Boris

  • SEARCH HELP HANDLING

    Hi Gurus,
                 Up tp now i am using elementary search helps.but now i am phasing the problem with collective search help.now in my scenario i want to use collective search help.but values are not getting with collective search help.Please give the suggetion.its very needful .
    Regards,
    Bixamaiah.

    Hi Caíque Escaler,
    I am using standard  COM_PARTNER collective search help .already i was tried and implemented method GET_V* and GET_P* .I was tested in web ui also but whenever i was click on this input search help pop is also coming but records are not coming.Please give me the suggestion its very needful to for us..
    Regards,
    Bixamaiah.B.

  • I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it

    I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work

    Hi Timia,
    If you are using Safari as a web browser :-
    Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
    If you are using Google Chrome as the web browser :-
      Open Google Chrome.
      In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
      In the "Search" section, select Google from the drop-down menu.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.

    After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.Urgent.TQ

    Izit software or hardware? Confuse:(
    Only can use wifi now.
    Any way thanks guys for ur suggestion:) amishcake and simes

  • I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    First, empty the Trash if you haven't already done so. Then reboot. That will temporarily free up some space.
    To locate large files, you can use Spotlight as described here. That method may not find large folders that contain a lot of small files.
    You can also use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • HT204266 I am trying to download Tap Tap Revenge on my new Ipad air..however..i searched for it in the App Store but there are none...help please..i really love this game! Is there something wrong with my App Store or my ipad??

    I am trying to download Tap Tap Revenge on my new Ipad air..however..i searched for it in the App Store but there are none...help please..i really love this game! Is there something wrong with my App Store or my ipad??

    It looks like the app is not currently in the App Store, I can't find it in the UK nor US stores.
    If you had previously downloaded it then do you have a copy on your computer's iTunes so that you can sync it to your iPad ?

  • I don't know exactly when this started, but Winamp became my default search and homepage.. The homepage issue was easy, but the search issue is bigger than I expected. It ALWAYS uses Winamp (Powered by AOL) as my default search. Please help. Thank you.

    I don't know exactly when this started, but Winamp became my default search and homepage.. The homepage issue was easy, but the search issue is bigger than I expected. It ALWAYS uses Winamp (Powered by AOL) as my default search. Please help. Thank you.

    reinstall it but make sure to uncheck the box next to "make winamp my default search engine"
    attached is screenshot from the part of installation proces where that checbox should be unchecked
    hope this helps

  • I just updated my 3gs to iOS5 and it keeps on saying cannot activate iphone.. after searching videos how to activate it.. i can't tap my three fingers because there is no clock showing on my screen. how do i go about it? help please.

    i just updated my 3gs to iOS5 and it keeps on saying cannot activate iphone.. after searching videos how to activate it.. i can't tap my three fingers because there is no clock showing on my screen. how do i go about it? help please.

    i have the exact same problem and im still currently trying to figure out how to activate it

  • 2 errors: "Your iPhone could not be activated because the activation server is temporarily unavailable" and the sim says "searching" while iTunes says there is "No Sim installed" - but of course, there is! Any help please??

    2 errors: "Your iPhone could not be activated because the activation server is temporarily unavailable" and the sim says "searching" while iTunes says there is "No Sim installed" - but of course, there is! Any help please??

    Hi Peter,
    Thank you for the note - I have seen similar replies on other posting errors and I see how that could make sense. The thing is, my iPhone is not jailbroken - it is from an authorized distributor. However, when I told them about the "no service" problem on the sim, they were unable to assist. Then my phone messaged that an itunes restore was required - so I did that, several times, to the error message now noted on my post. I wonder if there is some other way to over-write this message? Thanks very much.

  • My ipod nano FM radio does not work it only has European band and japan band and when you search to find a radio station I cant hear anything. Help please!!

    my ipod nano FM radio does not work it only has European band and japan band and when you search to find a radio station I cant hear anything. Help please!!

    Hi kahli:
    Have a look at  http://manuals.info.apple.com/en_US/iPod_nano_5th_gen_UserGuide.pdf
    AND
    http://manuals.info.apple.com/en_US/iPod_nano_5th_gen_UserGuide.pdf

  • HT4623 i have a ipod touch 4th gen and i have the wifi bars but when i try to search something it wont let me conect it says "Lightspeed systems - Wed acces" what could i do help please.! o.o

    i have a ipod touch 4th gen and i have the wifi bars but when i try to search something it wont let me conect it says "Lightspeed systems - Wed acces" what could i do help please.! o.o

    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • There is no wifi tick on my ipad. how it's happened? now i can't open or close or search wifi. please help!!

    there is no wifi tick on my ipad. how it's happened? now i can't open or close or search wifi. please help!!

    Go into Settings - Wi-Fi or Settings - Network to make sure you have WiFi turned on.

  • Please advise correct solution for Search help

    Hi ,
    i want to develop a webdynpro application( in ECC 6) which takes data from 4.6C . So i have to provide my own search helps to certain fields ( like material number) .
    As i am very new to webdynpro i planed to make search helps in ECC and using search help exit and RFC ( fetching data from 4.6c) fill data to these search helps and assign this to webdynpro fields. Is it make a -ve effect on perfomance? is there any alternative way to do this ? please advise.
    Regards,
    Ratheesh BS

    >
    Ratheesh Bhaskaran wrote:
    > Hi ,
    > Can you please explain this 'There is a BAPI that doesn't remote search helps generically' .
    > Regards,
    > Ratheesh BS
    Well that should have read - 'There is a BAPI that does remote search helps generically'.  That makes more sense.  The BAPI name is BAPI_HELPVALUES_GET.

Maybe you are looking for

  • DVI to s-video TV display

    what I want to do: I want to be able to use my tv as a second display to watch movies on etc. What I have: Macbook pro 15in with a DVI Out, DVI to s-video/ composite adapter. RF modulator for the tv as it is an old tv with only coaxel in, the RF modu

  • Crystal reports 2008 SP1 missing in BusinessObjects Crystal Reports website

    We have used Crystal reports 2008 as a reporting utility in our application and have released our product last year. During our release the latest software available  was Crystal reports 2008 base + SP1 + SP2 + Fix Pack 2.7 and same was mentioned in

  • Private Photos App - pictures not displaying This app was working fine, then suddenly it won`t display any of the photos.

    This app was working fine, then suddenly it won't display any of the photos. One day the photos were there, gone the next. It still shows how many photos are there but just shows a white screen. I can't export anything to the photo album. Adding phot

  • Can't remove start up CD from Mac Book

    I attempted to restore my macbook to factory settings and insert the OSX disc in the drive and the machine tells me the laptop cannot accept OSX, any thoughts? Now I cannot get the disc out of the drive

  • Reg: HR Certification Exam

    Hi Friends, Im going to give HRM certification exam in 15 days. Can you guide me to complete successfully. If possible, Please send me certification material / links. It helps alot. Please guide me. Thanks & Regards. Sam